Google Cloud offers a number of robust text-to-speech voice models. SignalWire supports all Google Cloud voices in both General Availability and Preview launch stages, except for the Studio model.
Google Cloud offers multiple TTS model types with varying quality and pricing:
The model type is encoded in the voice name (e.g., en-US-Neural2-A, es-ES-Wavenet-B).
polyglot-1 voice has variants for English (Australia), English (US), French, German, Spanish (Spain), and Spanish (US).Google Cloud TTS usage on SignalWire is billed according to the following SKU codes:
The billing SKU is automatically determined by the voice model type. Neural2 and Polyglot voices use the gcloud_cog SKU, while Standard and WaveNet voices use the gcloud SKU.
Consult the Voice API Pricing page for current rates.
Copy the voice ID in whole from the Voice name column of Google’s table of
supported voices.
Google Cloud voice IDs encode language and model information,
so no modification is needed to make these selections.
Prepend gcloud. and the string is ready for use.
For example: gcloud.en-GB-Wavenet-A
Google Cloud voice IDs conform to the following format:
Where <voice> is the complete voice name from Google’s supported voices table.
Voice name pattern:
Google Cloud voice names follow: <language>-<model>-<variant>
language: Language code (e.g., en-US, es-ES, ja-JP)model: Model type (e.g., Standard, Wavenet, Neural2, Polyglot)variant: Voice variant letter (e.g., A, B, C)Examples:
Case insensitivity:
Voice IDs are case-insensitive. These are equivalent:
Note: Google Cloud voice IDs already encode language and model information.
Sample all available voices with Google’s supported voices and languages reference. Copy the voice identifier string in whole from the Voice name column.
Unlike the other supported engines, Google Cloud voice identifier strings include both voice and language keys,
following the pattern <language>-<model>-<variant>.
For example:
en-GB-Wavenet-Aes-ES-Neural2-Bcmn-CN-Standard-DLearn how to use Google Cloud voices on the SignalWire platform.
Use the
languages
SWML method to set one or more voices for an AI agent.
Alternatively, use the say_voice parameter
of the play
SWML method to select a voice for basic TTS.