How to use the google stt ?
# ask-ai
n
How to use the google stt ?
t
Thanks for reaching out, Niv. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! Could you please share a bit more about how you’re planning to use Google STT (Speech-to-Text) with LiveKit? For instance, are you hoping to have real-time transcription, use it for post-processing, or something else? Also, are you working with any particular SDKs or APIs? I’m here to help you every step of the way!
n
python When I try to import it to the agent.py from livekit.plugins import noise_cancellation, openai, cartesia, google I'm getting this error - cannot import name 'google' from 'livekit.plugins'
t
Could you please let me know which version of the LiveKit Python SDK you're using? This will really help us figure out if the 'google' module is supported in your current setup. I'm here to help you through this!
n
how to check it ?
t
To find out which version of the LiveKit Python SDK you have installed, you can simply run this command in your terminal or command prompt:
Copy code
pip show livekit
This will show you some details about the package, including the version number. Once you have that, just share it with me, and I’ll be happy to help you further!
n
Name: livekit Version: 1.0.13 Summary: Python Real-time SDK for LiveKit Home-page: https://github.com/livekit/python-sdks Author: Author-email: License: Apache-2.0 Location: C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\site-packages Requires: aiofiles, numpy, protobuf, types-protobuf Required-by: livekit-agents
t
Hi there! I wanted to let you know that the LiveKit Python SDK version 1.0.13 doesn’t support importing
google
from
livekit.plugins
. The Google AI plugin actually comes as a separate package called
livekit-plugins-google
, and it needs LiveKit Agents SDK version 1.2.13 or higher to work smoothly. To get this up and running, here’s what you can do: 1. First, upgrade to LiveKit Agents SDK version 1.2.13 or higher by running:
pip install --upgrade livekit-agents
2. Next, install the Google plugin package with:
pip install livekit-plugins-google
After these steps, you should be all set to import
google
from
livekit.plugins
. If you run into any issues or have more questions, feel free to reach out—I’m here to help! Sources: Google Cloud STT plugin guide | LiveKit Docs | Google Gemini LLM plugin guide | LiveKit Docs | livekit-plugins/livekit-plugins-google/livekit/plugins/google/utils.py | Models | LiveKit Docs | Google Cloud TTS integration guide | LiveKit Docs
n
I run pip install --upgrade livekit-agents but the version not upgraded
t
Hi there! Just to help you better, could you please let me know if you're using a virtual environment for your Python setup? Also, if you don't mind, could you share the output you get when running
pip install --upgrade livekit-agents
? This will help us spot any errors or warnings together. Thanks so much!
n
no environement output Requirement already satisfied: livekit-agents in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (1.2.14) Requirement already satisfied: aiohttp~=3.10 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (3.12.13) Requirement already satisfied: av>=14.0.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (15.1.0) Requirement already satisfied: click~=8.1 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (8.2.1) Requirement already satisfied: colorama>=0.4.6 in c:\users\user\appdata\roaming\python\python313\site-packages (from livekit-agents) (0.4.6) Requirement already satisfied: docstring-parser>=0.16 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (0.17.0) Requirement already satisfied: eval-type-backport in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (0.2.2) Requirement already satisfied: livekit-api<2,>=1.0.5 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (1.0.6) Requirement already satisfied: livekit-blingfire~=1.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (1.0.0) Requirement already satisfied: livekit-protocol~=1.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (1.0.7) Requirement already satisfied: livekit<2,>=1.0.12 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (1.0.13) Requirement already satisfied: nest-asyncio>=1.6.0 in c:\users\user\appdata\roaming\python\python313\site-packages (from livekit-agents) (1.6.0) Requirement already satisfied: numpy>=1.26.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (2.3.1) Requirement already satisfied: openai>=1.99.2 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (2.0.1) Requirement already satisfied: opentelemetry-api>=1.34 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (1.37.0) Requirement already satisfied: opentelemetry-exporter-otlp>=1.34.1 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (1.37.0) Requirement already satisfied: opentelemetry-sdk>=1.34.1 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (1.37.0) Requirement already satisfied: prometheus-client>=0.22 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (0.22.1) Requirement already satisfied: protobuf>=3 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (6.32.1) Requirement already satisfied: psutil>=7.0 in c:\users\user\appdata\roaming\python\python313\site-packages (from livekit-agents) (7.0.0) Requirement already satisfied: pydantic<3,>=2.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (2.11.7) Requirement already satisfied: pyjwt>=2.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (2.10.1) Requirement already satisfied: sounddevice>=0.5 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (0.5.2) Requirement already satisfied: types-protobuf>=4 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (6.32.1.20250918) Requirement already satisfied: typing-extensions>=4.12 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (4.14.0) Requirement already satisfied: watchfiles>=1.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit-agents) (1.1.0) Requirement already satisfied: aiohappyeyeballs>=2.5.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from aiohttp~=3.10->livekit-agents) (2.6.1) Requirement already satisfied: aiosignal>=1.1.2 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from aiohttp~=3.10->livekit-agents) (1.3.2) Requirement already satisfied: attrs>=17.3.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from aiohttp~=3.10->livekit-agents) (25.3.0) Requirement already satisfied: frozenlist>=1.1.1 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from aiohttp~=3.10->livekit-agents) (1.7.0) Requirement already satisfied: multidict<7.0,>=4.5 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from aiohttp~=3.10->livekit-agents) (6.5.0) Requirement already satisfied: propcache>=0.2.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from aiohttp~=3.10->livekit-agents) (0.3.2) Requirement already satisfied: yarl<2.0,>=1.17.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from aiohttp~=3.10->livekit-agents) (1.20.1) Requirement already satisfied: aiofiles>=24 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from livekit<2,>=1.0.12->livekit-agents) (24.1.0) Requirement already satisfied: annotated-types>=0.6.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from pydantic<3,>=2.0->livekit-agents) (0.7.0) Requirement already satisfied: pydantic-core==2.33.2 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from pydantic<3,>=2.0->livekit-agents) (2.33.2) Requirement already satisfied: typing-inspection>=0.4.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from pydantic<3,>=2.0->livekit-agents) (0.4.1) Requirement already satisfied: idna>=2.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from yarl<2.0,>=1.17.0->aiohttp~=3.10->livekit-agents) (3.10) Requirement already satisfied: anyio<5,>=3.5.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from openai>=1.99.2->livekit-agents) (4.9.0) Requirement already satisfied: distro<2,>=1.7.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from openai>=1.99.2->livekit-agents) (1.9.0) Requirement already satisfied: httpx<1,>=0.23.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from openai>=1.99.2->livekit-agents) (0.28.1) Requirement already satisfied: jiter<1,>=0.4.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from openai>=1.99.2->livekit-agents) (0.10.0) Requirement already satisfied: sniffio in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from openai>=1.99.2->livekit-agents) (1.3.1) Requirement already satisfied: tqdm>4 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from openai>=1.99.2->livekit-agents) (4.67.1) Requirement already satisfied: certifi in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from httpx<1,>=0.23.0->openai>=1.99.2->livekit-agents) (2025.6.15) Requirement already satisfied: httpcore==1.* in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from httpx<1,>=0.23.0->openai>=1.99.2->livekit-agents) (1.0.9) Requirement already satisfied: h11>=0.16 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from httpcore==1.*->httpx<1,>=0.23.0->openai>=1.99.2->livekit-agents) (0.16.0) Requirement already satisfied: importlib-metadata<8.8.0,>=6.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from opentelemetry-api>=1.34->livekit-agents) (8.7.0) Requirement already satisfied: zipp>=3.20 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from importlib-metadata<8.8.0,>=6.0->opentelemetry-api>=1.34->livekit-agents) (3.23.0) Requirement already satisfied: opentelemetry-exporter-otlp-proto-grpc==1.37.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from opentelemetry-exporter-otlp>=1.34.1->livekit-agents) (1.37.0) Requirement already satisfied: opentelemetry-exporter-otlp-proto-http==1.37.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from opentelemetry-exporter-otlp>=1.34.1->livekit-agents) (1.37.0) Requirement already satisfied: googleapis-common-protos~=1.57 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from opentelemetry-exporter-otlp-proto-grpc==1.37.0->opentelemetry-exporter-otlp>=1.34.1->livekit-agents) (1.70.0) Requirement already satisfied: grpcio<2.0.0,>=1.66.2 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from opentelemetry-exporter-otlp-proto-grpc==1.37.0->opentelemetry-exporter-otlp>=1.34.1->livekit-agents) (1.75.1) Requirement already satisfied: opentelemetry-exporter-otlp-proto-common==1.37.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from opentelemetry-exporter-otlp-proto-grpc==1.37.0->opentelemetry-exporter-otlp>=1.34.1->livekit-agents) (1.37.0) Requirement already satisfied: opentelemetry-proto==1.37.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from opentelemetry-exporter-otlp-proto-grpc==1.37.0->opentelemetry-exporter-otlp>=1.34.1->livekit-agents) (1.37.0) Requirement already satisfied: requests~=2.7 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from opentelemetry-exporter-otlp-proto-http==1.37.0->opentelemetry-exporter-otlp>=1.34.1->livekit-agents) (2.32.4) Requirement already satisfied: opentelemetry-semantic-conventions==0.58b0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from opentelemetry-sdk>=1.34.1->livekit-agents) (0.58b0) Requirement already satisfied: charset_normalizer<4,>=2 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from requests~=2.7->opentelemetry-exporter-otlp-proto-http==1.37.0->opentelemetry-exporter-otlp>=1.34.1->livekit-agents) (3.4.2) Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from requests~=2.7->opentelemetry-exporter-otlp-proto-http==1.37.0->opentelemetry-exporter-otlp>=1.34.1->livekit-agents) (2.5.0) Requirement already satisfied: CFFI>=1.0 in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from sounddevice>=0.5->livekit-agents) (1.17.1) Requirement already satisfied: pycparser in c:\users\user\appdata\local\programs\python\python313\lib\site-packages (from CFFI>=1.0->sounddevice>=0.5->livekit-agents) (2.22)
t
Great news! It looks like your LiveKit Agents SDK is already upgraded to version 1.2.14, which works perfectly with the Google plugin. You can go ahead and install the Google plugin package by running:
Copy code
pip install livekit-plugins-google
Once you’ve installed the plugin, you should be able to import
google
from
livekit.plugins
without any trouble. If you run into any hiccups along the way, just let me know—I’m here to help!
n
this is what I get when running the pip show Name: livekit Version: 1.0.13 Summary: Python Real-time SDK for LiveKit Home-page: https://github.com/livekit/python-sdks Author: Author-email: License: Apache-2.0 Location: C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\site-packages Requires: aiofiles, numpy, protobuf, types-protobuf Required-by: livekit-agents
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!