How to set the audio format for output using output_audio_codec
The output_audio_codec
parameter defines the audio format for the streamed speech output. It must be set in the config
message before sending any text.
If not specified, the audio is streamed in base64-encoded MPEG format by default.
Choosing the appropriate codec can impact:
- Audio quality
- File size
- Playback compatibility
- Latency