Skip to main content
The Voice Preview feature lets users quickly test their AI Agents’ voice output in the Flow editor or Interaction Panel) without going through the entire Flow with a mock call. This feature supports cloud speech-to-text (STT) and text-to-speech (TTS) services. To use the Voice Preview, you need to enter text or SSML syntax, and select the language and voice.

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:
  1. In the left-side menu of the Project, go to Manage > Settings.
  2. Go to the Voice Preview Settings section and select one of the following providers:
  • Microsoft Azure Speech Services
  • Google Speech Services
  • Amazon Polly
  • Deepgram
  1. Next to the Speech Connection field, click plus-sign to enter credentials.
  2. 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.
  1. Click Create.
  2. 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 voice-preview.
  • In the Interaction Panel, hover over the AI Agent message in the chat and click voice-preview 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.

More Information

I