Cloud Text-to-Speech offers `global`, `us`, `eu` multiregional and regional API endpoints.
If you use a regional endpoint, your data at-rest and in-use stay
within the regional or continental boundaries of Europe or the USA, respectively. If your data's location must be controlled in order to comply with local regulatory requirements, then specifying an endpoint is important. There is no functional change to the behavior of
the API.

### Global

| Model name | Global |
|---|---|
| Gemini 2.5 Flash TTS (`gemini-2.5-flash-tts`) |   |
| Gemini 2.5 Flash TTS (`gemini-2.5-pro-tts`) |   |
| Chirp 3: HD voices |   |
| Chirp 3: Instant Custom Voice |   |

### United States

| Model name | US multi-region |
|---|---|
| Gemini 2.5 Flash TTS (`gemini-2.5-flash-tts`) |   |
| Gemini 2.5 Flash TTS (`gemini-2.5-pro-tts`) |   |
| Chirp 3: HD voices |   |
| Chirp 3: Instant Custom Voice |   |

### Europe

|   | EU multi-region | London, United Kingdom (europe-west2) | Frankfurt, Germany (europe-west3) | Eemshaven, Netherlands (europe-west4) |
|---|---|---|---|---|
| Gemini 2.5 Flash TTS (`gemini-2.5-flash-tts`) |   |   |   |   |
| Gemini 2.5 Flash TTS (`gemini-2.5-pro-tts`) |   |   |   |   |
| Chirp 3: HD voices |   |   |   |   |
| Chirp 3: Instant Custom Voice |   |   |   |   |

### Asia Pacific

|   | Tokyo, Japan (asia-northeast1) | Sydney, Australia (australia-southeast1) | Mumbai, India (asia-south1) | Singapore (asia-southeast1) | Seoul, Korea (asia-northeast3) |
|---|---|---|---|---|---|
| Gemini 2.5 Flash TTS (`gemini-2.5-flash-tts`) |   |   |   |   |   |
| Gemini 2.5 Flash TTS (`gemini-2.5-pro-tts`) |   |   |   |   |   |
| Chirp 3: HD voices |   |   |   |   |   |
| Chirp 3: Instant Custom Voice |   |   |   |   |   |

## Use regional endpoints

When you use a regional endpoint, make sure to include the matching `us` or `eu`
location in the `parent` string. See the
[`Synthesize`](https://docs.cloud.google.com/text-to-speech/docs/create-audio.md.txt)
documentation for more information about configuring the synthesize request
body.

### Protocol

To perform text to speech synthesis using a regional endpoint, run the
applicable command in the table below to configure the correct endpoint:

| Multi-region | Endpoint override |
|---|---|
| EU | `$ export CLOUD_TTS_ENDPOINT=https://eu-texttospeech.googleapis.com` |
| US | `$ export CLOUD_TTS_ENDPOINT=https://us-texttospeech.googleapis.com` |

Only Neural2 voices are available from these endpoints:

| Single-region | Endpoint override |
|---|---|
| US Central1 | `$ export CLOUD_TTS_ENDPOINT=https://us-central1-texttospeech.googleapis.com` |

The following code sample demonstrates how to send a
[`synthesis request`](https://docs.cloud.google.com/text-to-speech/docs/reference/rest/v1beta1/text/synthesize.md.txt)
that keeps all data confined to a specified region. You can substitute either
the `EU` or `US` regional endpoint for the <var translate="no">CLOUD_TTS_ENDPOINT</var>
variable. Replace <var translate="no">PROJECT_ID</var> with your project ID.

```bash
$ curl   -H "Authorization: Bearer $(gcloud auth print-access-token)" \
         -H "x-goog-user-project: PROJECT_ID" \
         -H "Content-Type: application/json; charset=utf-8" \
         --data "{
          'input':{
            'text':'Android is a mobile operating system developed by Google,
             based on the Linux kernel and designed primarily for
             touchscreen mobile devices such as smartphones and tablets.'
           },
          'voice':{
            'languageCode':'en-gb',
            'name':'en-GB-Neural2-A',
            'ssmlGender':'FEMALE'
          },
        'audioConfig':{
          'audioEncoding':'MP3'
        }
      }" $CLOUD_TTS_ENDPOINT/v1/text:synthesize > synthesize-text.txt
```

This example uses the [Google Cloud CLI](https://docs.cloud.google.com/sdk/docs/install) to create an access
token for your Google Account. For instructions on installing the
gcloud CLI, see
[Authenticate to Cloud TTS](https://docs.cloud.google.com/text-to-speech/docs/authentication.md.txt).

<br />

<br />

<br />

## Restrict global API endpoint usage

To help enforce the use of regional endpoints, use the
`constraints/gcp.restrictEndpointUsage` organization policy constraint to block
requests to the global API endpoint. For more information, see
[Restrict endpoint usage](https://docs.cloud.google.com/docs/security/compliance/restrict-endpoint-usage.md.txt).