Skip to main content

ai.languages

Use ai.languages to configure the spoken language of your AI Agent, as well as the TTS engine, voice, and fillers.

NameTypeDefaultDescription
languagesOptionalobject-An object that accepts the languages parameters.

Use ai.languages to configure the spoken language of your AI Agent, as well as the TTS engine, voice, and fillers.

Parameters for the languages object

NameTypeDefaultDescription
nameRequiredstringEnglishName of the language ("French", "English", etc).
codeRequiredstringen-USThe language code for the chosen voice, specified by the selected TTS provider. For example, fr-FR.
voiceRequiredstringStandard-tier voice picked by SignalWireString format: <engine id>.<voice id>.
Select engine from gcloud, polly, elevenlabs, or deepgram. Select voice from TTS provider reference.
For example, "gcloud.fr-FR-Neural2-B".
function_fillersOptionalstring[]NoneAn array of strings to be used as fillers in the conversation when the agent is calling a SWAIG function.
speech_fillersOptionalstring[]NoneAn array of strings to be used as fillers in the conversation. This helps the AI break silence between responses.
fillersOptionalstring[]NoneAn array of strings to be used as fillers in the conversation and when the agent is calling a SWAIG function.Deprecated: Use speech_fillers and function_fillers instead.
engineOptionalstringgcloudThe engine to use for the language. For example, "elevenlabs".Deprecated. Set the engine with the voice parameter.

Use voice strings

Compose the voice string using the <engine id>.<voice id> syntax.

First, select your engine using the gcloud, polly, elevenlabs, or deepgram identifier. Append a period (.), and then the specific voice ID (for example, en-US-Casual-K) from the TTS provider. Refer to SignalWire's Supported Voices and Languages for guides on configuring voice IDs strings for each provider.

Supported voices and languages

SignalWire's cloud platform integrates with these leading text-to-speech providers:

  • Google Cloud
  • Amazon Web Services
  • ElevenLabs
  • Deepgram

For a comprehensive list of supported engines, languages, and voices, refer to our documentation on Supported Voices and Languages.

Examples

Set a single language

SWML will automatically assign the language (and other required parameters) to the defaults in the above table if left unset. This example uses ai.language to configure a specific English-speaking voice from ElevenLabs.

languages:
- name: English
code: en-US
voice: elevenlabs.rachel
fillers:
- one moment please,
- hmm...
- let's see,

Set multiple languages

SWML will automatically assign the language (and other required parameters) to the defaults in the above table if left unset. This example uses ai.language to configure multiple languages using different TTS engines.

languages:
- name: Mandarin
code: cmn-TW
voice: gcloud.cmn-TW-Standard-A
- name: English
code: en-US
voice: elevenlabs.rachel