MetorialDocs

Set up Google Cloud Speech in Metorial for AI agents

Share Google Cloud Speech with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 10 tools (6 read-only).

To give your team Google Cloud Speech in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Google Cloud Speech integration in a Metorial portal, and each person signs in to Google Cloud Speech with their own account. Agents can convert audio to text transcriptions and synthesize natural-sounding speech from text using Google's neural network models. The integration has 10 tools, 6 read-only, 3 write and 1 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares Google Cloud Speech in a portal and how each person connects
  • The 3 OAuth scopes Google Cloud Speech can request, and what each one allows
  • How to keep the 6 read-only tools and reject the other 4

Before you start

Sign-in methods

MethodTypeWhat a person provides
Google OAuth 2.0 (default)OAuthSigns in to Google Cloud Speech
API KeyAPI tokenapiKey

The portal and metorial setup use Google OAuth 2.0 unless someone picks another method.

Google OAuth 2.0

People sign in to Google Cloud Speech and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
https://www.googleapis.com/auth/cloud-platformCloud PlatformFull access to Google Cloud Platform resources including Speech-to-Text and Text-to-Speech APIs
https://www.googleapis.com/auth/userinfo.profileUser ProfileView your basic Google profile information
https://www.googleapis.com/auth/userinfo.emailUser EmailView your Google account email address

The read-only tools need only https://www.googleapis.com/auth/cloud-platform. Allow just that scope in the Scopes picker when you create your own auth credentials, and the connection cannot change anything.

API Key

To connect, a person enters:

  • apiKey: Google Cloud API key with Speech API access enabled

Setup settings

Whichever method you pick, setup also asks for:

  • projectId: Google Cloud project ID
  • region (optional): Speech-to-Text v2 location. `global` is the safest default for recognizers and inline transcription. Regional locations may be available for specific projects or models.

Use your own Google Cloud Speech OAuth app

With your own OAuth app, people see your company's name on the Google Cloud Speech consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Google Cloud Speech and copy the Redirect URI.

Register the app

In the Google Cloud console, enable the API behind Google Cloud Speech under APIs & Services, Library. Then go to Google Auth platform, Clients, click Create Client, choose Web application, and paste the redirect URI from Metorial under Authorized redirect URIs. Google shows the client secret only when you create the client.

The Google Workspace guide covers the consent screen and the OAuth client in Google Cloud step by step.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Google Cloud Speech integration.

Admin: share Google Cloud Speech in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Google Cloud Speech. Under Auth Method, keep Google OAuth 2.0 or pick another. For how members connect, choose Each person connects, so everyone signs in to Google Cloud Speech as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Google Cloud Speech.

Choose who gets it

Add the access groups that should see Google Cloud Speech. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Google Cloud Speech integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "google cloud speech"

Employee: connect Google Cloud Speech

In the portal

Open Google Cloud Speech in the catalog

Sign in to your portal and open Google Cloud Speech. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A Google Cloud Speech sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "google cloud speech"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses Google OAuth 2.0. To connect with API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Google Cloud Speech connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "google cloud speech"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 6 read-only tools, such as list_voices and get_operation, and lose the 3 write tools, such as create_recognizer or update_recognizer, and the destructive tool delete_recognizer.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list "google cloud speech"
metorial tools <integration-id>
metorial call <integration-id> list_voices -d '{}'

metorial tools lists the 10 tools, minus any you rejected. list_voices takes no input. It lists available Text-to-Speech voices.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (6)

  • transcribe_audio: Transcribe audio to text using Google Cloud Speech-to-Text (synchronous recognition).
  • get_operation: Check the status and retrieve results of a long-running Speech-to-Text operation. Needs operationName.
  • synthesize_speech: Convert text or SSML into natural-sounding speech audio using Google Cloud Text-to-Speech. Needs languageCode.
  • get_recognizer: Get details of a specific recognizer configuration, including its model, languages, default recognition config, and status. Needs recognizerId.
  • list_recognizers: List all recognizer configurations in the configured project and region.
  • list_voices: List available Text-to-Speech voices.

Write tools (3)

  • batch_transcribe_audio: Start an asynchronous batch transcription of one or more audio files stored in Google Cloud Storage. Needs fileUris.
  • create_recognizer: Create a named recognizer configuration for Speech-to-Text v2. Needs recognizerId, model and languageCodes.
  • update_recognizer: Update an existing recognizer configuration. Needs recognizerId.

Destructive tools (1)

  • delete_recognizer: Delete a recognizer configuration. Needs recognizerId.

Triggers

Google Cloud Speech has 1 trigger, which fire on events in Google Cloud Speech:

  • inbound_webhook

Next steps