Skip to content

Speech

Create speech
client.Audio.Speech.New(ctx, body) (*Response, error)
POST/audio/speech
ModelsExpand Collapse
type SpeechModel string
Accepts one of the following:
const SpeechModelTTS1 SpeechModel = "tts-1"
const SpeechModelTTS1HD SpeechModel = "tts-1-hd"
const SpeechModelGPT4oMiniTTS SpeechModel = "gpt-4o-mini-tts"
const SpeechModelGPT4oMiniTTS2025_12_15 SpeechModel = "gpt-4o-mini-tts-2025-12-15"