Skip to content

SpeechAudioGenerationInterfaceGenerateSpeechMessage

HTTP API schema

← HTTP API reference

Turn text into speech audio using a model and voice from the model catalog.

SpeechAudioGenerationInterfaceGenerateSpeechMessage fields

modelstringRequired

Model identifier from the model catalog (query-models). An unknown model is rejected.

textstringRequired

The text content to synthesize into speech audio

voicestring

Voice from the model catalog entry. Omit for the vendor default voice.

styleInstructionsstring

Delivery direction separate from the spoken text, for models whose catalog entry supports it

responseFormatBinaryResponseFormat

responseFormat: Reference BinaryResponseFormat

View source specification ↗