You may want to restrict the GCP operation to a particular region, e.g. for compliance and regulatory reasons.

To do so, update the API endpoint from the global (default) one to a region-specific one:

from google.api_core.client_options import ClientOptions
 
client_options = ClientOptions(api_endpoint="us-speech.googleapis.com")  
# Defaults to "speech.googleapis.com" if `client_options` is not specified
 
Client(client_options=client_options)

As a result of applying this restrictions, it’s likely you’ll also need to update your relevant GCP resources to be region-specific:

projects/<project_id>/locations/<region>/...