OpenAI (Beta)
OpenAI provides natural-sounding text-to-speech with customizable voice instructions and multiple voice options.
Sample configuration
The following example shows a starting tts
parameter configuration you can use when you Start a conversational AI agent.
Key parameters
paramsrequired
- api_key stringrequired
The API key used for authentication. Get your API key from the OpenAI Console.
- model stringrequired
Identifier of the model to be used.
- voice stringrequired
The voice identifier for speech synthesis.
- instructions stringnullable
Custom instructions for voice style, accent, pace, and tone. Helps fine-tune the speech characteristics.
- speed numbernullable
Default:
1.0
Speaking rate multiplier. Values between
0.25
and4.0
, where1.0
is normal speed.
For advanced configuration options, available voices, and detailed parameter descriptions, see the OpenAI TTS documentation.