Skip to content

Audio speech example failing with Invalid URL - incorrect model #85

@boyswan

Description

@boyswan
res, err := a.client.Audio.Speech.New(ctx, openai.AudioSpeechNewParams{
  Model:          openai.F(openai.AudioModelWhisper1),
  Input:          openai.String(`Why did the chicken cross the road? To get to the other side.`),
  ResponseFormat: openai.F(openai.AudioSpeechNewParamsResponseFormatPCM),
  Voice:          openai.F(openai.AudioSpeechNewParamsVoiceAlloy),
})

Is erroring with:

{
  "error": {
    "message": "Invalid URL (POST /v1/audio/speech)",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

Model should be tts-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions