<@U08AMQDRAQL> thanks for flagging this. From wha...
# agents
e
@green-parrot-24267 thanks for flagging this. From what I’ve seen with Google STT v2 + LiveKit agents, the most common blockers are: Model availability/region – chirp_3 is supported only in specific regions. Try locations/global or confirm the model is enabled in us. Recognizer path – double-check the recognizer string and that your PROJECT_ID env var is set. Audio/permissions – make sure the GCS URI is public to the service account and that the Speech-to-Text v2 API is enabled.
g
actually locations/global throws an error model chirp_3 is not supported in location named ''global". I read from google documentation and only 'us' is the supporting region for chirp_3 right now. Then i set the location to 'us', Livekit does not throw the error any more -> but i see no transcription. I tried calling google directly with my service account and it works. It only doesn't work with LiveKit.
e
Since direct calls to Google with the same service account succeed but LiveKit returns no transcription, this is likely an integration/permission/audio formatting problem on the LiveKit side (credentials, recognizer path, endpoint, or the actual audio bytes LiveKit sends). I’ll walk through the exact checks and fixes below — if you can share LiveKit server logs (error lines / operation name) and whether you’re using streaming vs batch, I’ll patch the config and test it with you.
g
This is the whole log:
Copy code
(.venv) (base) kimngannguyen@ip-192-168-1-103 agents-main % python examples/voice_agents/basic_agent.py console
DEBUG:basic-agent:Testing STT with model chirp_3
DEBUG:asyncio:Using selector: KqueueSelector
2025-09-24 15:55:59,068 - DEBUG asyncio - Using selector: KqueueSelector 
==================================================
     Livekit Agents - Console
==================================================
Press [Ctrl+B] to toggle between Text/Audio mode, [Q] to quit.

INFO:livekit.agents:starting worker
2025-09-24 15:55:59,068 - INFO livekit.agents - starting worker {"version": "1.2.11", "rtc-version": "1.0.13"}
INFO:livekit.agents:starting inference executor
2025-09-24 15:55:59,068 - INFO livekit.agents - starting inference executor 
INFO:livekit.agents:initializing process
2025-09-24 15:55:59,076 - INFO livekit.agents - initializing process {"pid": 27038, "inference": true}
DEBUG:basic-agent:Testing STT with model chirp_3
DEBUG:livekit.agents:initializing inference runner
DEBUG:livekit.agents:initializing inference runner
2025-09-24 15:55:59,744 - DEBUG livekit.agents - initializing inference runner {"runner": "lk_end_of_utterance_multilingual", "pid": 27038, "inference": true}
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
DEBUG:livekit.agents:inference runner initialized
DEBUG:asyncio:Using selector: KqueueSelector
DEBUG:livekit.agents:inference runner initialized
2025-09-24 15:56:00,880 - DEBUG livekit.agents - inference runner initialized {"runner": "lk_end_of_utterance_multilingual", "elapsed_time": 1.135961834108457, "pid": 27038, "inference": true}
INFO:livekit.agents:process initialized
2025-09-24 15:56:00,881 - INFO livekit.agents - process initialized {"pid": 27038, "inference": true, "elapsed_time": 1.8}
DEBUG:asyncio:Using selector: KqueueSelector
2025-09-24 15:56:00,881 - DEBUG asyncio - Using selector: KqueueSelector {"pid": 27038, "inference": true}
INFO:livekit.agents:initializing job runner
2025-09-24 15:56:00,883 - INFO livekit.agents - initializing job runner {"tid": 15128630}
DEBUG:asyncio:Using selector: KqueueSelector
2025-09-24 15:56:00,930 - DEBUG asyncio - Using selector: KqueueSelector 
INFO:livekit.agents:job runner initialized
2025-09-24 15:56:00,931 - INFO livekit.agents - job runner initialized {"tid": 15128630, "elapsed_time": 0.05}
DEBUG:google.auth._default:Checking /Users/kimngannguyen/Downloads/agents-main/examples/voice_agents/billease_key.json for explicit credentials as part of auth process...
2025-09-24 15:56:00,965 - DEBUG google.auth._default - Checking /Users/kimngannguyen/Downloads/agents-main/examples/voice_agents/billease_key.json for explicit credentials as part of auth process... {"room": "mock_room"}
[Audio] cBook Pro Microphone [-70.00 dBFS] [------------------------------]DEBUG:grpc._cython.cygrpc:Using AsyncIOEngine.POLLER as I/O engine
2025-09-24 15:56:01,196 - DEBUG grpc._cython.cygrpc - Using AsyncIOEngine.POLLER as I/O engine {"room": "mock_room"}
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1758704161.198913 15128759 fork_posix.cc:71] Other threads are currently calling into gRPC, skipping fork() handlers
E0000 00:00:1758704161.202860 15128630 alts_credentials.cc:93] ALTS creds ignored. Not running on GCP and untrusted ALTS is not enabled.
DEBUG:livekit.agents:using audio io: `ChatCLI` -> `AgentSession` -> `TranscriptSynchronizer` -> `ChatCLI`
2025-09-24 15:56:01,245 - DEBUG livekit.agents - using audio io: `ChatCLI` -> `AgentSession` -> `TranscriptSynchronizer` -> `ChatCLI` {"room": "mock_room"}
DEBUG:livekit.agents:using transcript io: `AgentSession` -> `TranscriptSynchronizer` -> `ChatCLI`
2025-09-24 15:56:01,245 - DEBUG livekit.agents - using transcript io: `AgentSession` -> `TranscriptSynchronizer` -> `ChatCLI` {"room": "mock_room"}
[Audio] cBook Pro Microphone [-82.73 dBFS] [------------------------------]INFO:livekit.agents:LLM metrics
2025-09-24 15:56:02,277 - INFO livekit.agents - LLM metrics {"room": "mock_room", "ttft": 0.83, "prompt_tokens": 185, "prompt_cached_tokens": 0, "completion_tokens": 12, "tokens_per_second": 11.2}
[Audio] cBook Pro Microphone [-83.21 dBFS] [------------------------------]INFO:livekit.agents:TTS metrics
2025-09-24 15:56:04,050 - INFO livekit.agents - TTS metrics {"room": "mock_room", "ttfb": 1.7467266251333058, "audio_duration": 2.34}
[Audio] cBook Pro Microphone [-82.14 dBFS] [------------------------------]INFO:livekit.agents:shutting down worker
2025-09-24 15:57:24,750 - INFO livekit.agents - shutting down worker {"id": "unregistered"}
DEBUG:livekit.agents:shutting down job task
2025-09-24 15:57:24,750 - DEBUG livekit.agents - shutting down job task {"room": "mock_room", "reason": "", "user_initiated": false}
INFO:basic-agent:Usage: UsageSummary(llm_prompt_tokens=185, llm_prompt_cached_tokens=0, llm_input_audio_tokens=0, llm_completion_tokens=12, llm_output_audio_tokens=0, tts_characters_count=41, tts_audio_duration=2.3379999999999996, stt_audio_duration=0.0)
2025-09-24 15:57:24,751 - INFO basic-agent - Usage: UsageSummary(llm_prompt_tokens=185, llm_prompt_cached_tokens=0, llm_input_audio_tokens=0, llm_completion_tokens=12, llm_output_audio_tokens=0, tts_characters_count=41, tts_audio_duration=2.3379999999999996, stt_audio_duration=0.0) {"room": "mock_room"}
DEBUG:livekit.agents:job exiting
2025-09-24 15:57:24,752 - DEBUG livekit.agents - job exiting {"reason": "", "tid": 15128630, "job_id": "simulated-job-790d8fb39210"}
[Audio] cBook Pro Microphone [-81.54 dBFS] [------------------------------]WARNING:livekit.agents:exiting forcefully
2025-09-24 15:57:24,904 - WARNING livekit.agents - exiting forcefully
I tried with the most basic example here https://github.com/livekit/agents/blob/main/examples/voice_agents/basic_agent.py I only changed STT -> which does not work
Copy code
stt=google.STT(model="chirp_3",
                       location='us', 
                       interim_results=False, 
                       languages=["en-US"]
                       )
With exactly same settings, i changed model to chirp_2 and location = 'us-central1' stt=google.STT(model="chirp_2", location='us-central1', interim_results=False, languages=["en-US"] ) it works.
but chirp_3 does not work
e
From the logs you provided, it’s clear that the Speech-to-Text stage did not process any user audio—stt_audio_duration is 0.0—which means the requests reaching Google are empty or missing the audio payload. The LLM and TTS stages ran successfully, so the pipeline itself is functioning, but the STT step is effectively skipped. To confirm this and pinpoint the exact reason, it’s important to check Google Cloud’s Speech-to-Text logs. By going to the Cloud Console → Logging → Logs Explorer and filtering for resource.type=speech.googleapis.com, you can inspect the incoming requests for chirp_3 and see whether the audio field is populated, if there are any warnings, or if the request failed silently. This will help determine whether the issue lies in how LiveKit is sending audio to Google or in some configuration mismatch for the chirp_3 model.
Also, if possible, could you please share the code or a link to the repository? You can send it via DM or provide access to the repo. This will help me look at the exact implementation and debug.
g
@elegant-glass-77462 hi, this is the log from my console
Copy code
{
  "insertId": "69d36ce0-0000-2f2a-8094-14223bb10a02",
  "jsonPayload": {
    "recognizer": "projects/refined-kite-416308/locations/us/recognizers/_",
    "@type": "type.googleapis.com/google.cloud.speech.logging.v1.CloudSpeechRecognition",
    "streamingRecognize": {
      "streamingRecognizeRequest": {
        "config": {
          "encoding": {
            "audioChannelCount": 1,
            "encoding": "AUDIO_ENCODING_LINEAR16",
            "sampleRateHertz": 16000
          },
          "adaptation": {},
          "recognitionFeatures": {
            "speechEndTimeout": "0s",
            "speechStartTimeout": "0s",
            "enableWordTimeOffsets": true,
            "enableAutomaticPunctuation": true
          }
        }
      },
      "streamingRecognizeResponse": [
        {
          "speechEventOffset": "0s",
          "results": [
            {
              "resultEndOffset": "8.520000457s",
              "languageCode": "en-US",
              "isFinal": true
            }
          ]
        },
        {
          "status": {
            "code": 1
          }
        }
      ]
    },
    "totalBilledDuration": "10s"
  },
  "resource": {
    "type": "speech.googleapis.com/Recognizer",
    "labels": {
      "location": "us",
      "recognizer_id": "",
      "resource_container": "projects/1095402927517"
    }
  },
  "timestamp": "2025-09-24T13:17:34.237692584Z",
  "logName": "projects/refined-kite-416308/logs/speech.googleapis.com%2Fcloud_speech_recognition_stream",
  "receiveTimestamp": "2025-09-24T13:17:35.275957140Z"
}
e
From logs stt_audio_duration=0.0 and the transcription results are empty. This means No audio is actually reaching STT (payload empty).
g
Also, I found that model chirp_3 is not yet in the list of google plugins, can this cause the issue?
e
yes
Might be
Your code looks correct, LiveKit’s internal plugin mapping for chirp_3 is missing, so audio might not be transmitted properly.
If you want to use chirp_3 you can create microservice for google STT and process your input and after pass the output to LLM.