elegant-glass-77462
09/24/2025, 8:21 AMgreen-parrot-24267
09/24/2025, 8:24 AMelegant-glass-77462
09/24/2025, 8:40 AMgreen-parrot-24267
09/24/2025, 10:17 AM(.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 forcefullygreen-parrot-24267
09/24/2025, 10:18 AMstt=google.STT(model="chirp_3",
location='us',
interim_results=False,
languages=["en-US"]
)green-parrot-24267
09/24/2025, 10:19 AMgreen-parrot-24267
09/24/2025, 10:19 AMelegant-glass-77462
09/24/2025, 12:55 PMelegant-glass-77462
09/24/2025, 1:07 PMgreen-parrot-24267
09/24/2025, 1:26 PM{
"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"
}elegant-glass-77462
09/24/2025, 1:38 PMgreen-parrot-24267
09/24/2025, 1:41 PMelegant-glass-77462
09/24/2025, 1:42 PMelegant-glass-77462
09/24/2025, 1:42 PMelegant-glass-77462
09/24/2025, 1:43 PMelegant-glass-77462
09/24/2025, 1:46 PM