Skip to main content
Google Cloud Speech-to-Text is a speech-to-text plugin. It transcribes the caller’s audio into text for the LLM using Google Cloud’s Speech-to-Text V2 streaming API.

Setup

Google Cloud STT authenticates with a Google Cloud service account rather than a simple API key. Point Application Default Credentials at your service-account JSON. Create the service account and key in the Google Cloud console:
In the Python SDK you can also pass the service-account JSON path (or raw JSON string) as the api_key argument. The value is used directly as the service-account credentials; it is not written to the GOOGLE_APPLICATION_CREDENTIALS environment variable.

Usage

Import the plugin and pass it to the pipeline’s stt slot.

Parameters

Constructor parameters for the Python SDK (GoogleSTT). The JavaScript and Go SDKs expose equivalent options where supported, in their idiomatic form (camelCase / STTOptions struct).

Import paths

Transcribed text passes to the LLM once turn detection decides the caller has finished speaking.