Skip to main content
Updated in 2026.24.0 The say verb converts text to speech and plays it to the caller. It supports multiple TTS vendors, languages, voices, and advanced options such as looping, early media, and fallback synthesizers.

Configuration

The following table lists the available parameters:

Synthesizer options

Synthesizer options let you pass settings to the speech provider, such as the speaking rate, the voice style, or text normalization. Use them when the standard synthesizer parameters, such as voice and language, don’t cover a speech provider setting.

Configure options

Add the settings to synthesizer.options. Settings that the speech provider expects as query parameters go in a queryOptions object inside options:
Note the following:
  • Nesting: Nest the fields the way the speech provider’s API does. ElevenLabs options are mostly flat, but Google expects speakingRate and pitch inside audioConfig.
  • Supported fields: Each speech provider accepts only the fields listed in Options by speech provider. If a field isn’t one of them, Voice Gateway ignores that field and applies the rest.
  • Invalid values: If a value has the wrong type or is out of range, Voice Gateway ignores all the options for that request and synthesizes the speech without them.
  • Parameters that options can’t override: Set the voice, language, and engine with synthesizer.voice, synthesizer.language, and synthesizer.engine. Options can’t override them.

Options by speech provider

The tables list the fields that you can set for each speech provider. Fields that start with queryOptions. go in the queryOptions object inside options.
For details, see the ElevenLabs text-to-speech API.Example:
For details, see the Google Cloud Text-to-Speech API.To select the voice and the gender, use synthesizer.voice and synthesizer.gender.Example:
For details, see the Amazon Polly API.To select the engine and the language, use synthesizer.engine and synthesizer.language.Example:
For details, see the Deepgram text-to-speech API.Example:
Microsoft, Speechmatics, and custom speech providers don’t accept any options. For the supported speech providers, see TTS and STT vendors.
Last modified on November 24, 2026