> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Voice Preview

<a href="/release-notes/2026.3"><Badge className="version-badge" color="blue">Updated in 2026.3</Badge></a>

The *Voice Preview* feature lets users quickly test their AI Agents' voice output in the [Flow editor](/ai/agents/develop/projects-and-flows/editor) or [Interaction Panel](/ai/agents/test/interaction-panel/overview) without going through the entire [Flow](/ai/agents/develop/projects-and-flows/overview) 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 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.

## 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:

<Tabs>
  <Tab title="Microsoft Azure Speech Services">
    1) Next to the **Speech Connection** field, click <img src="https://mintcdn.com/cognigy-15abf2ba/I0ba9I1paCAUpGLP/_assets/icons/black-and-white/plus-sign.svg?fit=max&auto=format&n=I0ba9I1paCAUpGLP&q=85&s=4d8886f18ca8f167f2ccdbea9b1411b8" alt="plus-sign" width="12" height="12" data-path="_assets/icons/black-and-white/plus-sign.svg" /> to enter credentials.<br />
    2) In the **New Connection** window, fill in the following fields:<br />
       * **Connection** — specify a unique connection name.<br />
       * **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](https://learn.microsoft.com/en-us/azure/ai-services/openai/text-to-speech-quickstart?tabs=command-line#set-up).<br />
       * **Region** — this parameter is optional. Enter a specific region if necessary.<br />
  </Tab>

  <Tab title="Google Speech Services">
    1. Next to the **Speech Connection** field, click <img src="https://mintcdn.com/cognigy-15abf2ba/I0ba9I1paCAUpGLP/_assets/icons/black-and-white/plus-sign.svg?fit=max&auto=format&n=I0ba9I1paCAUpGLP&q=85&s=4d8886f18ca8f167f2ccdbea9b1411b8" alt="plus-sign" width="12" height="12" data-path="_assets/icons/black-and-white/plus-sign.svg" /> to enter credentials.<br />
    2. In the **New Connection** window, specify a unique name for your connection in the **Connection** field.<br />
    3. Click **Upload JSON File** and upload the JSON file that you received from Google Speech Services. To obtain a JSON key file for accessing the Google Speech Services, first create a service account in the Google Cloud Console under **IAM & Admin**. Assign the appropriate roles, generate a JSON key file for the service account, and download this key.<br />
  </Tab>

  <Tab title="Amazon Polly">
    1. Next to the **Speech Connection** field, click <img src="https://mintcdn.com/cognigy-15abf2ba/I0ba9I1paCAUpGLP/_assets/icons/black-and-white/plus-sign.svg?fit=max&auto=format&n=I0ba9I1paCAUpGLP&q=85&s=4d8886f18ca8f167f2ccdbea9b1411b8" alt="plus-sign" width="12" height="12" data-path="_assets/icons/black-and-white/plus-sign.svg" /> to enter credentials.<br />
    2. In the **New Connection** window, fill in the following fields:<br />
       * **Access Key ID** — specify an Access Key ID. Log in to the AWS Management Console, go to the IAM dashboard, select **Users**, and choose the IAM user. Navigate to the **Security credentials** tab, and under **Access keys**, create a new access key if one hasn't been created. Copy the Access Key ID provided after creation.<br />
       * **Secret Access Key** — specify a Secret Access Key. After creating the access key, you'll be prompted to download a file containing the Access Key ID and the Secret Access Key. Alternatively, you can retrieve the Secret Access Key by navigating to the IAM dashboard, selecting the user, going to the **Security credentials** tab, and clicking **Show** next to the Access Key ID to reveal and copy the Secret Access Key.<br />
       * **Session Token** — this parameter is optional. If you use temporary security credentials, obtain the token when using AWS STS (Security Token Service) to assume a role or federate users.<br />
       * **Region** — this parameter is optional. Enter the AWS region where your Amazon Polly resources are located, for example, `us-east-1` for the US East (N. Virginia) region.<br />
  </Tab>

  <Tab title="Deepgram Speech Services">
    1. Next to the **Speech Connection** field, click <img src="https://mintcdn.com/cognigy-15abf2ba/I0ba9I1paCAUpGLP/_assets/icons/black-and-white/plus-sign.svg?fit=max&auto=format&n=I0ba9I1paCAUpGLP&q=85&s=4d8886f18ca8f167f2ccdbea9b1411b8" alt="plus-sign" width="12" height="12" data-path="_assets/icons/black-and-white/plus-sign.svg" /> 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 Deepgram. To obtain the API key, log in to the Deepgram Console, navigate to the Settings of your Deepgram Project, and select **API Keys**. For more information, read the [Deepgram documentation](https://developers.deepgram.com/docs/create-additional-api-keys).
  </Tab>

  <Tab title="ElevenLabs Speech Services">
    <Note>
      The feature is hidden behind the feature flag. Activate ElevenLabs Speech Services on the Cognigy.AI side:

      * If you have a SaaS installation, contact [Cognigy technical support](/help/get-help).
      * If you have an on-premises installation, specify `FEATURE_ENABLE_ELEVENLABS_STT_VENDOR=true` in the `values.yaml`.
    </Note>

    1. Next to the **Speech Connection** field, click <img src="https://mintcdn.com/cognigy-15abf2ba/I0ba9I1paCAUpGLP/_assets/icons/black-and-white/plus-sign.svg?fit=max&auto=format&n=I0ba9I1paCAUpGLP&q=85&s=4d8886f18ca8f167f2ccdbea9b1411b8" alt="plus-sign" width="12" height="12" data-path="_assets/icons/black-and-white/plus-sign.svg" /> 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 ElevenLabs. To get the API key, log in to the ElevenLabs platform, navigate to your account settings, and find the API key section. For more information, read the [ElevenLabs documentation](https://docs.elevenlabs.io/).
       * **Region** — select one of the following regions:
         * **Global** — for all global ElevenLabs services.
         * **EU** — for ElevenLabs services hosted in the European Union.
       * **TTS model** — select the TTS model to use for text-to-speech conversion.
       * **STT model** — select the STT model to use for speech-to-text conversion.
  </Tab>
</Tabs>

3. Click **Create**.
4. 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 <img src="https://mintcdn.com/cognigy-15abf2ba/sIAERK2J23A3FpS0/_assets/icons/black-and-white/voice-preview.svg?fit=max&auto=format&n=sIAERK2J23A3FpS0&q=85&s=b9c316eb9176055d520031272021b044" alt="voice-preview" width="20" height="20" data-path="_assets/icons/black-and-white/voice-preview.svg" />.
* In the Interaction Panel, hover over the AI Agent message in the chat and click <img src="https://mintcdn.com/cognigy-15abf2ba/sIAERK2J23A3FpS0/_assets/icons/black-and-white/voice-preview.svg?fit=max&auto=format&n=sIAERK2J23A3FpS0&q=85&s=b9c316eb9176055d520031272021b044" alt="voice-preview" width="20" height="20" data-path="_assets/icons/black-and-white/voice-preview.svg" /> 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

* [Interaction Panel](/ai/agents/test/interaction-panel/overview)
* [Voice Gateway](/voice-gateway/index)
* [Voice Nodes](/ai/agents/develop/node-reference/voice/overview)
