5-09-01 12:42:29,065 - ERROR livekit.agents - unha...
# ask-ai
b
2025-09-01 124229,065 - ERROR livekit.agents - unhandled exception while running the job task Traceback (most recent call last): File “/Users/madhavsharma/uplevel-livekit-worker/venv/lib/python3.13/site-packages/opentelemetry/util/_decorator.py”, line 71, in async_wrapper return await func(*args, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/Users/madhavsharma/uplevel-livekit-worker/venv/lib/python3.13/site-packages/livekit/agents/ipc/job_proc_lazy_main.py”, line 240, in _traceable_entrypoint await self._job_entrypoint_fnc(job_ctx) File “/Users/madhavsharma/uplevel-livekit-worker/app.py”, line 104, in entrypoint await run_multimodal_agent(ctx, participant) File “/Users/madhavsharma/uplevel-livekit-worker/app.py”, line 131, in run_multimodal_agent llm=pipeline_factory.get_llm_model(), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File “/Users/madhavsharma/uplevel-livekit-worker/models/pipeline/pipeline_factory.py”, line 95, in get_llm_model return GoogleRealtimeModel(self.config).get_model() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File “/Users/madhavsharma/uplevel-livekit-worker/models/pipeline/llm.py”, line 85, in get_model input_audio_transcription=types.AudioTranscriptionConfig( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ language_code=“en-US”, ^^^^^^^^^^^^^^^^^^^^^^ ), ^ File “/Users/madhavsharma/uplevel-livekit-worker/venv/lib/python3.13/site-packages/pydantic/main.py”, line 253, in init validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) pydantic_core._pydantic_core.ValidationError: 1 validation error for AudioTranscriptionConfig
t
Thanks for reaching out, Madhav. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Could you help me understand a bit more so we can get this sorted out together? • Which LiveKit plugin or service are you using with
AudioTranscriptionConfig
? For example, Google, OpenAI, Gladia, or something else? • When does this error pop up? Is it during initialization, API calls, or while processing a stream? • Could you share the exact error message and the code snippet that’s causing the
ValidationError
? That’ll really help me pinpoint the issue. Sources: livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/real... | plugins/google/src/beta/realtime/realtime_api.ts | Understanding "silence detected on local audio track" warning
b
I am using Google realtime model
2025-09-01 124229,065 - INFO uplevel-livekit-worker - Participant metadata: {‘difficulty’: ‘Medium’, ‘topic’: ‘Arrays’} {“job_id”: “AJ_AVu6supbERfR”, “pid”: 18960} 2025-09-01 124229,065 - ERROR livekit.agents - unhandled exception while running the job task Traceback (most recent call last): File “/Users/madhavsharma/uplevel-livekit-worker/venv/lib/python3.13/site-packages/opentelemetry/util/_decorator.py”, line 71, in async_wrapper return await func(*args, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/Users/madhavsharma/uplevel-livekit-worker/venv/lib/python3.13/site-packages/livekit/agents/ipc/job_proc_lazy_main.py”, line 240, in _traceable_entrypoint await self._job_entrypoint_fnc(job_ctx) File “/Users/madhavsharma/uplevel-livekit-worker/app.py”, line 104, in entrypoint await run_multimodal_agent(ctx, participant) File “/Users/madhavsharma/uplevel-livekit-worker/app.py”, line 131, in run_multimodal_agent llm=pipeline_factory.get_llm_model(), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File “/Users/madhavsharma/uplevel-livekit-worker/models/pipeline/pipeline_factory.py”, line 95, in get_llm_model return GoogleRealtimeModel(self.config).get_model() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File “/Users/madhavsharma/uplevel-livekit-worker/models/pipeline/llm.py”, line 85, in get_model input_audio_transcription=types.AudioTranscriptionConfig( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ language_code=“en-US”, ^^^^^^^^^^^^^^^^^^^^^^ ), ^ File “/Users/madhavsharma/uplevel-livekit-worker/venv/lib/python3.13/site-packages/pydantic/main.py”, line 253, in init validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) pydantic_core._pydantic_core.ValidationError: 1 validation error for AudioTranscriptionConfig language_code Extra inputs are not permitted [type=extra_forbidden, input_value=‘en-US’, input_type=str] For further information visit https://errors.pydantic.dev/2.11/v/extra_forbidden {“pid”: 18960, “job_id”: “AJ_AVu here’s error message
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!
b
I am using livekit google realtime model gettin this error in initalisation input_audio_transcription=types.AudioTranscriptionConfig( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ language_code=“en-US”, ^^^^^^^^^^^^^^^^^^^^^^ ), ^ File “/Users/madhavsharma/uplevel-livekit-worker/venv/lib/python3.13/site-packages/pydantic/main.py”, line 253, in init validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) pydantic_core._pydantic_core.ValidationError: 1 validation error for AudioTranscriptionConfig language_code Extra inputs are not permitted [type=extra_forbidden, input_value=‘en-US’, input_type=str]