Skip to content

Commit

Permalink
fix(example): use correct model (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobzim-stl authored and stainless-app[bot] committed Oct 17, 2024
1 parent 6544e4a commit 0f3578d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/audio-text-to-speech/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func main() {
ctx := context.Background()

res, err := client.Audio.Speech.New(ctx, openai.AudioSpeechNewParams{
Model: openai.F(openai.AudioModelWhisper1),
Model: openai.F(openai.SpeechModelTTS1),
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),
Expand Down

0 comments on commit 0f3578d

Please sign in to comment.