Cloud TTS Chirp 3: HD voices represent the latest generation of Text-to-Speech technology. Powered by our latest generation of generative models, these voices deliver realism and emotional resonance.
Voice options
A range of voice options are available, each with distinct characteristics:
| Name | Gender | Demo |
|---|---|---|
| Achernar | Female | |
| Achird | Male | |
| Algenib | Male | |
| Algieba | Male | |
| Alnilam | Male | |
| Aoede | Female | |
| Autonoe | Female | |
| Callirrhoe | Female | |
| Charon | Male | |
| Despina | Female | |
| Enceladus | Male | |
| Erinome | Female | |
| Fenrir | Male | |
| Gacrux | Female | |
| Iapetus | Male | |
| Kore | Female | |
| Laomedeia | Female | |
| Leda | Female | |
| Orus | Male | |
| Pulcherrima | Female | |
| Puck | Male | |
| Rasalgethi | Male | |
| Sadachbia | Male | |
| Sadaltager | Male | |
| Schedar | Male | |
| Sulafat | Female | |
| Umbriel | Male | |
| Vindemiatrix | Female | |
| Zephyr | Female | |
| Zubenelgenubi | Male |
Language availability
Chirp 3: HD voices are supported in the following languages, with Punjabi (India) and Chinese (Hong Kong) available in Preview.
| Language | BCP-47 Code |
|---|---|
| Arabic (Generic) | ar-XA |
| Bengali (India) | bn-IN |
| Bulgarian (Bulgaria) | bg-BG |
| Chinese (Hong Kong) | yue-HK |
| Croatian (Croatia) | hr-HR |
| Czech (Czech Republic) | cs-CZ |
| Danish (Denmark) | da-DK |
| Dutch (Belgium) | nl-BE |
| Dutch (Netherlands) | nl-NL |
| English (Australia) | en-AU |
| English (India) | en-IN |
| English (United Kingdom) | en-GB |
| English (United States) | en-US |
| Estonian (Estonia) | et-EE |
| Finnish (Finland) | fi-FI |
| French (Canada) | fr-CA |
| French (France) | fr-FR |
| German (Germany) | de-DE |
| Greek (Greece) | el-GR |
| Gujarati (India) | gu-IN |
| Hebrew (Israel) | he-IL |
| Hindi (India) | hi-IN |
| Hungarian (Hungary) | hu-HU |
| Indonesian (Indonesia) | id-ID |
| Italian (Italy) | it-IT |
| Japanese (Japan) | ja-JP |
| Kannada (India) | kn-IN |
| Korean (South Korea) | ko-KR |
| Latvian (Latvia) | lv-LV |
| Lithuanian (Lithuania) | lt-LT |
| Malayalam (India) | ml-IN |
| Mandarin Chinese (China) | cmn-CN |
| Marathi (India) | mr-IN |
| Norwegian Bokmål (Norway) | nb-NO |
| Polish (Poland) | pl-PL |
| Portuguese (Brazil) | pt-BR |
| Punjabi (India) | pa-IN |
| Romanian (Romania) | ro-RO |
| Russian (Russia) | ru-RU |
| Serbian (Cyrillic) | sr-RS |
| Slovak (Slovakia) | sk-SK |
| Slovenian (Slovenia) | sl-SI |
| Spanish (Spain) | es-ES |
| Spanish (United States) | es-US |
| Swahili (Kenya) | sw-KE |
| Swedish (Sweden) | sv-SE |
| Tamil (India) | ta-IN |
| Telugu (India) | te-IN |
| Thai (Thailand) | th-TH |
| Turkish (Turkey) | tr-TR |
| Ukrainian (Ukraine) | uk-UA |
| Urdu (India) | ur-IN |
| Vietnamese (Vietnam) | vi-VN |
Regional availability
Chirp 3: HD voices are available across global, multi-regional, and regional Cloud Text-to-Speech endpoints. For the complete list of supported locations and endpoint configuration instructions, see Specify a regional endpoint.
Supported output formats
Supported audio encodings depend on the synthesis method. SynthesizeSpeech
requires an audio_encoding value. If you don't specify an encoding,
StreamingSynthesize uses PCM. The following table lists the supported
formats for each synthesis method:
| API method | Format |
|---|---|
StreamingSynthesize (streaming) |
PCM, ALAW, MULAW, OGG_OPUS |
SynthesizeSpeech (synchronous) |
LINEAR16, ALAW, MP3, MULAW, OGG_OPUS |
Use Chirp 3: HD voices
Discover how to use Chirp 3: HD voices to synthesize speech.
Perform streaming speech synthesis request
Python
To learn how to install and use the client library for Cloud TTS, see Cloud TTS client libraries. For more information, see the Cloud TTS Python API reference documentation.
To authenticate to Cloud TTS, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Perform online speech synthesis request
Python
To learn how to install and use the client library for Cloud TTS, see Cloud TTS client libraries. For more information, see the Cloud TTS Python API reference documentation.
To authenticate to Cloud TTS, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Scripting and prompting tips
Creating engaging and natural-sounding audio from text requires understanding the nuances of spoken language and translating them into script form. The following tips will help you craft scripts that sound authentic and capture the chosen tone.
Understanding the goal: Natural speech
The primary objective is to make the synthesized voice sound as close to a natural human speaker as possible. This involves:
- Mimicking Natural Pacing: How quickly or slowly someone speaks.
- Creating Smooth Flow: Ensuring seamless transitions between sentences and phrases.
- Adding Realistic Pauses: Incorporating pauses for emphasis and clarity.
- Capturing Conversational Tone: Making the audio sound like a real conversation.
Key techniques for natural speech
Punctuation for Pacing and Flow
- Periods (.): Indicate a full stop and a longer pause. Use them to separate complete thoughts and create clear sentence boundaries.
- Commas (,): Signal shorter pauses within sentences. Use them to separate clauses, list items, or introduce brief breaks for breath.
- Ellipses (...): Represent a longer, more deliberate pause. They can indicate trailing thoughts, hesitation, or a dramatic pause.
- Example: "And then... it happened."
- Hyphens (-): Can be used to indicate a brief pause or a sudden break in thought.
- Example: "I wanted to say - but I couldn't."
Incorporating Pauses and Disfluencies
- Strategic Pauses: Use ellipses, commas, or hyphens to create pauses in places where a human speaker would naturally pause for breath or emphasis.
- Disfluencies (Ums and Uhs): While some Cloud Text-to-Speech models handle disfluencies automatically, understanding their role is crucial. They add authenticity and make the speech sound less robotic. Even if the model adds them, being aware of where they would naturally occur in human speech helps you understand the overall flow of your script.
Experimentation and Iteration
- Re-synthesizing: Don't be afraid to re-synthesize the same message with the same voice multiple times. Minor tweaks to punctuation, spacing, or word choice can significantly impact the final audio.
- Listen Critically: Pay close attention to the pacing, flow, and overall tone of the synthesized audio. Identify areas that sound unnatural and adjust your script accordingly.
- Voice Variation: If the system allows for it, try using different voices to see which one best suits your script and chosen tone.
Practical Scripting Tips
- Read Aloud: Before synthesizing, read your script aloud. This will help you identify awkward phrasing, unnatural pauses, and areas that need adjustment.
- Write Conversationally: Use contractions (e.g., "it's," "we're") and informal language to make the script sound more natural.
- Consider the Context: The tone and pacing of your script should match the context of the audio. A formal presentation will require a different approach than a casual conversation.
- Break Down Complex Sentences: Long, convoluted sentences can be difficult for TTS engines to handle. Break them down into shorter, more manageable sentences.
Sample Script Improvements
Original Script (Robotic): "The product is now available. We have new features. It is very exciting."
Improved Script (Natural): "The product is now available... and we've added some exciting new features. It's, well, it's very exciting."
Original Script (Robotic): "This is an automated confirmation message. Your reservation has been processed. The following details pertain to your upcoming stay. Reservation number is 12345. Guest name registered is Anthony Vasquez Arrival date is March 14th. Departure date is March 16th. Room type is Deluxe Suite. Number of guests is 1 guest. Check-in time is 3 PM. Check-out time is 11 AM. Please note, cancellation policy requires notification 48 hours prior to arrival. Failure to notify within this timeframe will result in a charge of one night's stay. Additional amenities included in your reservation are: complimentary Wi-Fi, access to the fitness center, and complimentary breakfast. For any inquiries, please contact the hotel directly at 855-555-6689 Thank you for choosing our hotel."
Improved Script (Natural): "Hi Anthony Vasquez! We're so excited to confirm your reservation with us! You're all set for your stay from March 14th to March 16th in our beautiful Deluxe Suite. That's for 1 guest. Your confirmation number is 12345, just in case you need it.
So, just a quick reminder, check-in is at 3 PM, and check-out is at, well, 11 AM.
Now, just a heads-up about our cancellation policy… if you need to cancel, just let us know at least 48 hours before your arrival, okay? Otherwise, there'll be a charge for one night's stay.
And to make your stay even better, you'll have complimentary Wi-Fi, access to our fitness center, and a delicious complimentary breakfast each morning!
If you have any questions at all, please don't hesitate to call us at 855-555-6689. We can't wait to welcome you to the hotel!"
Explanation of Changes:
- The ellipses (...) create a pause for emphasis.
- "and we've" uses a contraction for a more conversational tone.
- "It's, well, it's very exciting" adds a small amount of disfluency, and emphasis.
- "Okay?" friendly reminder softens tone.
By following these guidelines, you can create text-to-audio scripts that sound natural, engaging, and human-like. Remember that practice and experimentation are key to mastering this skill.
Chirp 3: HD SSML support
Speech Synthesis Markup Language (SSML) tags give you more control over how text is converted into speech. By using SSML, you can specify pronunciations, paragraphs, control and influence the overall structure of the input text for more natural-sounding audio.
Supported SSML elements
Synchronous SynthesizeSpeech requests with Chirp 3: HD voices support
the following SSML elements. During synthesis,
Cloud TTS ignores any elements that aren't on this list.
<speak>: The root element of the SSML text.<say-as>: Lets you provide hints about how to pronounce the contained text. Note thatinterpret-as="expletive"orinterpret-as="bleep"are not supported.<p>: Represents a paragraph.<s>: Represents a sentence.<phoneme>: Provides a phonetic pronunciation for the contained text.<sub>: Pronounces the alias value instead of the element's contained text.<break>: Controls pausing between words.<audio>: Inserts a recorded audio file from a URL.<prosody>: Customizes the pitch, speaking rate, and volume of the contained text.<voice>: Requests a different voice for the contained text.
The StreamingSynthesize method,
Chirp 3: Instant Custom Voice,
and the custom_pronunciations field don't support
SSML input.
Sample SynthesizeSpeechRequest using SSML:
{
"audio_config": {
"audio_encoding": "LINEAR16",
},
"input": {
"ssml": "<speak>Here are <say-as interpret-as=\"characters\">SSML</say-as> samples. I can also substitute phrases, like the <sub alias=\"World Wide Web Consortium\">W3C</sub>. Hi,<phoneme alphabet=\"ipa\" ph=\"ˌmænɪˈtoʊbə\">manitoba</phoneme>! Finally, I can speak a paragraph with two sentences. <p><s>This is sentence one.</s><s>This is sentence two.</s></p></speak>",
},
"voice": {
"language_code": "en-US",
"name": "en-us-Chirp3-HD-Leda",
}
}
Chirp 3: HD voice controls
Voice control features are specifically for HD voice synthesis. You can manage pace control, pause control, and custom pronunciations through the Chirp 3: HD voice control options.
Pace control
You can adjust the speed of generated audio using the speaking_rate
parameter. Synchronous SynthesizeSpeech requests support values from 0.25
to 4.0. Bidirectional streaming StreamingSynthesize requests support values
from 0.25 to 2.0. Values below 1.0 slow down the speech, and values above
1.0 speed it up. A value of 1.0 indicates an unadjusted pace.
Sample SynthesizeSpeechRequest using pace control:
{
"audio_config": {
"audio_encoding": "LINEAR16",
"speaking_rate": 2.0,
},
"input": {
"text": "Once upon a time, there was a cute cat. He was so cute that he got lots of treats.",
},
"voice": {
"language_code": "en-US",
"name": "en-us-Chirp3-HD-Leda",
}
}
Sample StreamingSynthesizeConfig using pace control:
{
"streaming_audio_config": {
"audio_encoding": "PCM",
"speaking_rate": 2.0,
},
"voice": {
"language_code": "en-US",
"name": "en-us-Chirp3-HD-Leda",
}
}
Pace control audio samples:
| Speaking rate | Output |
|---|---|
| 0.5 | |
| 1.0 | |
| 2.0 |
Pause control
You can insert pauses into AI-generated speech by embedding special tags directly into your text using the markup input field. Note that pause tags will only work in the markup field, and not in the text field.
These tags signal the AI to create silences, but the precise length of these pauses isn't fixed. The AI adjusts the duration based on context, much like natural human speech varies with speaker, location, and sentence structure. The available pause tags are [pause short], [pause long], and [pause]. For alternative methods of creating pauses without using markup tags, refer to our prompting and crafting guidelines.
The AI model might occasionally disregard the pause tags, especially if they are placed in unnatural positions in the text. You can combine multiple pause tags for longer silences, but excessive use can lead to problems.
Sample SynthesizeSpeechRequest using pause control:
{
"audio_config": {
"audio_encoding": "LINEAR16",
},
"input": {
"markup": "Let me take a look, [pause long] yes, I see it.",
},
"voice": {
"language_code": "en-US",
"name": "en-us-Chirp3-HD-Leda",
}
}
Sample StreamingSynthesisInput using pause control:
{
"markup": "Let me take a look, [pause long] yes, I see it.",
}
Pause control audio samples:
| Markup input | Output |
|---|---|
| "Let me take a look, yes, I see it." | |
| "Let me take a look, [pause long] yes, I see it." |
Custom pronunciations
You can specify custom pronunciations for phrases in your input text. Most
supported locales use IPA or X-SAMPA phonetic encoding. Mandarin Chinese in
cmn-CN requires Pinyin, and Japanese in ja-JP requires Yomigana. Use
language-appropriate phonemes for accurate synthesis. For phoneme tables, Pinyin
tone numbers, and Yomigana pitch accents, see
Supported phonemes and levels of stress.
Sample SynthesizeSpeechRequest using custom pronunciations:
{
"audio_config": {
"audio_encoding": "LINEAR16",
},
"input": {
"text": "There is a dog in the boat",
"custom_pronunciations": {
"phrase": "dog",
"phonetic_encoding": "PHONETIC_ENCODING_X_SAMPA",
"pronunciation": "\"k{t",
}
},
"voice": {
"language_code": "en-US",
"name": "en-us-Chirp3-HD-Leda",
}
}
Sample StreamingSynthesizeConfig using custom pronunciations:
{
"streaming_audio_config": {
"audio_encoding": "PCM",
},
"voice": {
"language_code": "en-US",
"name": "en-us-Chirp3-HD-Leda",
},
"custom_pronunciations": {
"phrase": "dog",
"phonetic_encoding": "PHONETIC_ENCODING_X_SAMPA",
"pronunciation": "\"k{t",
}
}
Custom pronunciations audio samples:
| Custom pronunciations applied | Output |
|---|---|
| None | |
| "dog" pronounced as ""k{t" |
Overridden phrases must include letters or digits. To disambiguate words with
multiple pronunciations, including in Chinese and Japanese, add symbols or
digits to the phrase. For example, to override only one instance of the word
read, format both the input text and the phrase as "read1", "[read]", or
"(read)".
Keep the following custom pronunciation constraints in mind:
- The
custom_pronunciationsfield works only withinput.textandinput.markup. If you combinecustom_pronunciationswithinput.ssml, the request returns anINVALID_ARGUMENTerror. To customize pronunciations in SSML, use<phoneme>or<sub>elements instead. - Phrases that contain only punctuation or symbols, such as
"#", return anINVALID_ARGUMENTerror. - Except in
cmn-CN,ja-JP, andko-KR, phrases match only when bordered by the start or end of input or a non-alphanumeric character. Full tokens that combine symbols with letters or digits, such as"#1","*#06#", or"[read]", match when separated by whitespace or punctuation. Phrases directly adjacent to another letter or digit, such as"#1"inside"item#1", don't match. cmn-CNrequiresPHONETIC_ENCODING_PINYIN, andja-JPrequiresPHONETIC_ENCODING_JAPANESE_YOMIGANA. Other supported locales, such asko-KR, usePHONETIC_ENCODING_IPAorPHONETIC_ENCODING_X_SAMPA. Requests with a mismatched encoding return anINVALID_ARGUMENTerror.
See this example of applying custom pronunciations to a sentence where the word read is pronounced in two different ways:
{
"audio_config": {
"audio_encoding": "LINEAR16",
},
"input": {
"text": "I read1 a book, and I will now read2 it to you.",
"custom_pronunciations": {
"phrase": "read1",
"phonetic_encoding": "PHONETIC_ENCODING_IPA",
"pronunciation": "rɛd",
}
"custom_pronunciations": {
"phrase": "read2",
"phonetic_encoding": "PHONETIC_ENCODING_IPA",
"pronunciation": "riːd",
}
},
"voice": {
"language_code": "en-US",
"name": "en-us-Chirp3-HD-Leda",
}
}
| Custom pronunciations applied | Output |
|---|---|
| "read" overridden two ways |
Furthermore, custom pronunciations may be used with markup input, which enables the usage of pause tags as well:
{
"audio_config": {
"audio_encoding": "LINEAR16",
},
"input": {
"markup": "Did you [pause long] read this book?",
"custom_pronunciations": {
"phrase": "read",
"phonetic_encoding": "PHONETIC_ENCODING_IPA",
"pronunciation": "riːd",
}
},
"voice": {
"language_code": "en-US",
"name": "en-us-Chirp3-HD-Leda",
}
}
| Custom pronunciations used | Output |
|---|---|
| Override pronunciation with pause tag |
Language availability for voice controls
Pace control is available across all locales.
Pause control is available across all locales except: bg-bg, cs-cz, el-gr, et-ee, he-il, hr-hr, hu-hu, lt-lt, lv-lv, pa-in, ro-ro, sk-sk, sl-si, sr-rs, and yue-hk.
Custom pronunciations is available across all locales except: bg-bg, bn-in, cs-cz, da-dk, el-gr, et-ee, fi-fi, gu-in, he-il, hr-hr, hu-hu, lt-lt, lv-lv, nb-no, nl-be, pa-in, ro-ro, sk-sk, sl-si, sr-rs, sv-se, sw-ke, th-th, uk-ua, ur-in, vi-vn, and yue-hk.
FAQ
Common questions and their answers:
How do I control pacing and flow to improve the speech output?
You can utilize our prompting and crafting guidelines and improve your text prompt to improve your speech output.
How do I access voices in supported languages?
Voice names follow a specific format, allowing usage across supported languages by specifying the voice uniquely. The format follows \<locale\>-\<model\>-\<voice\>. For example, to use the Kore voice for English (United States) using the Chirp 3: HD voices model, you would specify it as en-US-Chirp3-HD-Kore.