Skip to main content
Updated in 2026.11 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.

Prerequisites

  • To activate access to speech provider credentials from Voice Gateway in the Voice Preview section in the Project settings, do the following:
    • For on-premises installations, set FEATURE_VG_SPEECH_CREDENTIAL_SOURCE: "true" in values.yaml.
    • For Cognigy SaaS installations, contact Cognigy technical support.

Restrictions

  • The Voice Preview feature supports only the Google, Microsoft, Amazon AWS, Deepgram, and Speechmatics speech providers. When testing a voice Flow through the Interaction Panel, you must 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 ElevenLabs, 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. For example, ElevenLabs doesn’t support SSML. Check the documentation of your speech provider to see if it supports SSML.

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.
The Voice Preview section includes a message that indicates which tab configuration is in use.

How to Use Voice Preview

Configure Speech Provider

To configure a speech provider, you can either set it up in Cognigy.AI or select one from Voice Gateway.

Set Up Speech Provider in Cognigy.AI

Depending on whether you have access to Voice Gateway speech credentials or only to Cognigy.AI speech credentials from the Project settings, set up the speech provider as follows:
  1. In the left-side menu of the Project, go to Manage > Settings.
  2. Go to the Local Credentials tab in the Voice Preview Settings section and select one of the following providers from the Speech Provider list:
  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. The supported voices vary by region. Verify which voices are available in the provided region in the Azure AI Speech regions documentation.
  1. Click Create.
  2. To check the connection, click Test.
You can set up multiple speech providers. By default, the speech provider selected in the Speech Provider list is applied to your Flows and the Interaction Panel. You can change the voice and speech provider for your AI Agent, for example, in the AI Agent Node or Set Session Config Node without switching the default speech provider.

Select Speech Provider from Voice Gateway

This feature is in beta. We encourage you to try it out and provide us with feedback.
  1. In the navigation menu, go to Manage > Settings.
  2. On the Voice Gateway tab in the Voice Preview Settings section, configure the following:
  • Synthesizer (Text-to-Speech) — select the speech provider for TTS.
  • Recognizer (Speech-to-Text) — select the speech provider for STT.

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

Last modified on July 22, 2026