Some speech providers use
streaming to describe their API’s connection method, for example, a websocket-based API for submitting multiple texts. This concept is different from TTS streaming in Voice, which refers to audio playout: how quickly synthesized audio starts playing back to the caller.Key benefits
- Lower response latency. Audio playback starts as soon as the first words are synthesized, instead of after the full text is processed.
- More natural conversation flow. Reduced time-to-first-audio makes voice agent responses feel closer to real-time human conversation, especially with longer text.
Prerequisites
- A voice flow agent configured.
- A configured speech service.
Restrictions
- The following speech providers don’t support TTS streaming: AWS, Google, Nuance, Speechmatics, and Deepgram Flux.
- For ElevenLabs, Voice uses the ElevenLabs streaming API. The following parameters aren’t supported and can’t be specified in Extra Options:
seedprevious_request_idsnext_request_idsapply_text_normalizationapply_language_text_normalizationuse_pvc_as_ivcpronunciation_dictionary_locators
Configure TTS streaming
To activate streaming for your voice agent, follow these steps:1. Configure the speech service
1. Configure the speech service
- In the navigation menu, select Speech.
- On the Speech services page, select an existing speech service or create a new one by clicking Add a speech service in the upper-right corner.
- On the Add Speech service page, make sure that the Use for text-to-speech option is activated.
- Activate the Enable text-to-speech streaming option.
- (Optional) For ElevenLabs, configure the Extra Options field to customize the TTS streaming behavior. See the list of unsupported parameters in the Restrictions section.
- Click Save.
2. Configure the set session config node in Cognigy
2. Configure the set session config node in Cognigy
- Go to the Set Session Config node in your flow.
- In the Synthesizer (TTS) section, select your speech service from the TTS Vendor list.
- Configure TTS Language and TTS Voice as needed.