From 39d6566e917a3b565c8314a132e2744133564e65 Mon Sep 17 00:00:00 2001 From: Jacob Zimmerman Date: Wed, 16 Oct 2024 14:21:51 -0400 Subject: [PATCH] fix(example): use correct model --- examples/audio-text-to-speech/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/audio-text-to-speech/main.go b/examples/audio-text-to-speech/main.go index c4f558be..1415b7b5 100644 --- a/examples/audio-text-to-speech/main.go +++ b/examples/audio-text-to-speech/main.go @@ -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),