Overview
This plugin allows you to use Google Cloud STT as an STT provider for your voice agents.
Quick reference
This section includes a basic usage example and some reference material. For links to more detailed documentation, see Additional resources.
Installation
Install the plugin from PyPI:
pip install "livekit-agents[google]~=1.2"
Authentication
Google Cloud credentials must be provided by one of the following methods:
- Passed in the
credentials_info
dictionary. - Saved in the
credentials_file
JSON file (GOOGLE_APPLICATION_CREDENTIALS
environment variable). - Application Default Credentials. To learn more, see How Application Default Credentials works
Usage
Use a Google Cloud STT in an AgentSession
or as a standalone transcription service. For example, you can use this STT in the Voice AI quickstart.
from livekit.plugins import googlesession = AgentSession(stt = google.STT(model="chirp",spoken_punctuation=False,),# ... llm, tts, etc.)
Parameters
This section describes some of the available parameters. See the plugin reference for a complete list of all available parameters.
Specify input languages. For a full list of supported languages, see Speech-to-text supported languages.
Replace spoken punctuation with punctuation characters in text.
Model to use for speech-to-text. To learn more, see Select a transcription model.
Key-value pairs of authentication credential information.
Name of the JSON file that contains authentication credentials for Google Cloud.
Additional resources
The following resources provide more information about using Google Cloud with LiveKit Agents.
Python package
The livekit-plugins-google
package on PyPI.
Plugin reference
Reference for the Google Cloud STT plugin.
GitHub repo
View the source or contribute to the LiveKit Google Cloud STT plugin.
Google Cloud docs
Google Cloud STT docs.
Voice AI quickstart
Get started with LiveKit Agents and Google Cloud STT.
Google ecosystem guide
Overview of the entire Google AI and LiveKit Agents integration.