Restrictions
- The Voice Preview feature supports only the Google, Microsoft, Amazon AWS, and Deepgram speech providers. When testing a voice Flow through the Interaction Panel, you should check the STT and TTS settings of the voice Nodes to ensure that one of these providers is specified. If any other provider, such as Evenlabs, is specified in the Nodes, the Interaction Panel won’t support the voice conversation.
- To use SSML syntax in the Voice Preview, the speech provider must support SSML syntax.
Access STT and TTS Providers
If your environment has network connection restrictions or requires strict security rules, make sure that both STT and TTS providers are accessible. Add the IP address ranges of your STT and TTS providers to the firewall’s whitelist. This approach ensures the Cognigy.AI server can interact smoothly with both providers, guaranteeing the expected functionality of the Voice Preview feature.How to Use Voice Preview
Set up a Speech Provider
To set up a speech provider and test your voice agents, follow these steps:- In the left-side menu of the Project, go to Manage > Settings.
- Go to the Voice Preview Settings section and select one of the following providers:
- Microsoft Azure Speech Services
- Google Speech Services
- Amazon Polly
- Deepgram
- Next to the Speech Connection field, click
to enter credentials.
- In the New Connection window, fill in the following fields:
- Connection — specify a unique connection name.
- API Key — specify an API key for Microsoft Azure Speech Services. Log in to the Azure portal, navigate to your Speech Services resource, and copy the API key labeled as Key1 from the Keys and Endpoint section. For more information, read the Microsoft Azure AI documentation.
- Region — this parameter is optional. Enter a specific region if necessary.
- Connection — specify a unique connection name.
- Click Create.
- To check the connection, click Test.
Use Voice Preview
You can access the Voice Preview feature in two different ways:- In the Flow editor, click
.
- In the Interaction Panel, hover over the AI Agent message in the chat and click
in the interactive tooltip. The Voice Preview button is displayed only for certain types of output, including regular text output, fallback text, and text or SSML output from channels that support voice.