magnificent-furniture-73003
12/06/2025, 7:41 AMTypeError: STT.__init__() got an unexpected keyword argument 'model'
stt=elevenlabs.STT(
model="scribe_v2_realtime",
),tall-airline-16756
12/06/2025, 7:41 AMtall-airline-16756
12/06/2025, 7:41 AMSTT constructor expects model_id, not model.
Change your code to:
stt = elevenlabs.STT(
model_id="scribe_v2_realtime",
)
Also make sure the ElevenLabs plugin is installed and ELEVEN_API_KEY is set in your .env. Would you like me to check any other STT settings in your agent.py?
Sources: ElevenLabs STT plugin guide | LiveKit docsmagnificent-furniture-73003
12/06/2025, 7:43 AMtall-airline-16756
12/06/2025, 7:44 AMpip show livekit-agents
◦ pip show livekit-plugins-elevenlabs
1. The full traceback (or at least the top 6–8 lines) showing where the TypeError is raised.
Quick checklist while you grab those:
• Ensure you import from the plugins package: from livekit.plugins import elevenlabs
• If you installed via extras, confirm the installed versions above so I can tell which parameter (model vs model_id) your installed plugin expects.
Send the snippet and pip/show outputs and I’ll tell you the exact fix.
Sources: ElevenLabs STT plugin guide | LiveKit docsmagnificent-furniture-73003
12/06/2025, 7:46 AMvivek@Viveks-MacBook-Air agent-starter-python % uv pip show livekit-agents
Name: livekit-agents
Version: 1.2.18
Location: /Users/vivek/Desktop/Personal/revspot/agent-starter-python/.venv/lib/python3.11/site-packages
Requires: aiohttp, av, certifi, click, colorama, docstring-parser, eval-type-backport, livekit, livekit-api, livekit-blingfire, livekit-protocol, nest-asyncio, numpy, openai, opentelemetry-api, opentelemetry-exporter-otlp, opentelemetry-sdk, prometheus-client, protobuf, psutil, pydantic, pyjwt, sounddevice, types-protobuf, typing-extensions, watchfiles
Required-by: agent-starter-python, livekit-plugins-cartesia, livekit-plugins-deepgram, livekit-plugins-elevenlabs, livekit-plugins-google, livekit-plugins-groq, livekit-plugins-openai, livekit-plugins-sarvam, livekit-plugins-silero, livekit-plugins-turn-detector
vivek@Viveks-MacBook-Air agent-starter-python % uv pip show livekit-plugins-elevenlabs
Name: livekit-plugins-elevenlabs
Version: 1.2.18
Location: /Users/vivek/Desktop/Personal/revspot/agent-starter-python/.venv/lib/python3.11/site-packages
Requires: livekit-agents
Required-by:tall-airline-16756
12/06/2025, 7:46 AMmodel and model_id.
Please paste:
1. The import line(s) and the STT initialization lines from your agent.py (3–8 lines).
2. The top ~8 lines of the full traceback that show where the TypeError is raised.
If you prefer, paste the entire small file and traceback and I’ll inspect for conflicting imports or wrapper code that might be changing the STT signature.magnificent-furniture-73003
12/06/2025, 7:48 AM2025-12-06 13:14:27,771 - ERROR livekit.agents - unhandled exception while running the job task
Traceback (most recent call last):
File "/Users/vivek/Desktop/Personal/revspot/agent-starter-python/.venv/lib/python3.11/site-packages/opentelemetry/util/_decorator.py", line 71, in async_wrapper
return await func(*args, **kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vivek/Desktop/Personal/revspot/agent-starter-python/.venv/lib/python3.11/site-packages/livekit/agents/ipc/job_proc_lazy_main.py", line 240, in _traceable_entrypoint
await self._job_entrypoint_fnc(job_ctx)
File "/Users/vivek/Desktop/Personal/revspot/agent-starter-python/src/agent.py", line 170, in entrypoint
stt=elevenlabs.STT(
^^^^^^^^^^^^^^^
TypeError: STT.__init__() got an unexpected keyword argument 'model_id' {"room": "playground-fSK1-9d66", "pid": 65233, "job_id": "AJ_dAR6kSfyoWLd"}
session = AgentSession(
# # A Large Language Model (LLM) is your agent's brain, processing user input and generating a response
# # See all providers at https://docs.livekit.io/agents/integrations/llm/
# # llm=openai.LLM(model="gpt-4o-mini"),
# llm=google.LLM(
# model="gemini-2.5-flash",
# temperature=0.0
# ),
llm=groq.LLM(
model="openai/gpt-oss-120b",
temperature=0.2,
),
# # Speech-to-text (STT) is your agent's ears, turning the user's speech into text that the LLM can understand
# # See all providers at https://docs.livekit.io/agents/integrations/stt/
# stt=deepgram.STT(
# model="nova-3",
# language="en-IN",
# ),
stt=elevenlabs.STT(
model_id="scribe_v2_realtime",
),tall-airline-16756
12/06/2025, 7:48 AMmodel (not model_id).
Change this:
stt=elevenlabs.STT(
model_id="scribe_v2_realtime",
),
to:
stt=elevenlabs.STT(
model="scribe_v2_realtime",
),
If you still get the TypeError after that, please paste the exact import lines at the top of your file (showing how elevenlabs is imported) and the top 8 lines of the new traceback. I’ll check for conflicting imports or a wrapper changing the signature.
Sources: ElevenLabs STT plugin guide | LiveKit docsmagnificent-furniture-73003
12/06/2025, 7:49 AMfrom livekit.plugins import deepgram, noise_cancellation, openai, silero, google, elevenlabs, groq, cartesiatall-airline-16756
12/06/2025, 7:49 AMimport inspect, livekit.plugins.elevenlabs as elevenlabs
print("signature:", inspect.signature(elevenlabs.STT))
print("object:", elevenlabs.STT)
print("init qualname:", elevenlabs.STT.__init__.__qualname__)
2) Show the module file path (if step 1 errors on getsource):
import inspect, livekit.plugins.elevenlabs as elevenlabs
print("file:", inspect.getfile(elevenlabs))
3) One-liners you can run from shell if you prefer:
python -c "import inspect, livekit.plugins.elevenlabs as elevenlabs; print('signature:', inspect.signature(elevenlabs.STT)); print('object:', elevenlabs.STT); print('init qualname:', elevenlabs.STT.__init__.__qualname__)"
python -c "import inspect, livekit.plugins.elevenlabs as elevenlabs; print('file:', inspect.getfile(elevenlabs))"
Also confirm the exact STT init line you’re using now (copy-paste). With those outputs I can tell whether a different implementation or wrapper is installed and give the exact fix.
Sources: ElevenLabs STT plugin guide | LiveKit docs | AssemblyAI STT | LiveKit Docsmagnificent-furniture-73003
12/06/2025, 8:00 AMtall-airline-16756
12/06/2025, 8:00 AMimport inspect, livekit.plugins.elevenlabs as elevenlabs
print("signature:", inspect.signature(elevenlabs.STT))
print("object:", elevenlabs.STT)
print("init qualname:", elevenlabs.STT.__init__.__qualname__)
print("file:", inspect.getfile(elevenlabs))
1. If you prefer a single shell command (after activating venv), run:
• macOS / Linux / Windows cmd:
python -c "import inspect, livekit.plugins.elevenlabs as elevenlabs; print('signature:', inspect.signature(elevenlabs.STT)); print('object:', elevenlabs.STT); print('init qualname:', elevenlabs.STT.__init__.__qualname__); print('file:', inspect.getfile(elevenlabs))"
Paste the full output here and also your current STT init line (copy-paste). I’ll use that to identify why the constructor is rejecting `model`/`model_id`.magnificent-furniture-73003
12/06/2025, 8:00 AMtall-airline-16756
12/06/2025, 8:01 AM(.venv) or similar.
2) Confirm packages are visible Run:
• pip show livekit-agents
You should see the package info you pasted earlier. If it says "Package not found", you are still outside the venv.
3) Run the inspection (inside the activated venv) Copy-paste this whole command into your shell and paste the output here:
• macOS / Linux / Windows cmd / PowerShell:
python -c "import inspect, livekit.plugins.elevenlabs as elevenlabs; print('signature:', inspect.signature(elevenlabs.STT)); print('object:', elevenlabs.STT); print('init qualname:', elevenlabs.STT.__init__.__qualname__); print('file:', inspect.getfile(elevenlabs))"
If that errors with "module 'livekit' not found" even after activation, run:
• python -m pip show livekit-agents
and paste the output.
4) Also paste the exact STT init line you're using now (copy-paste).
I’ll use the outputs to tell you whether the installed plugin matches the docs or if something else is shadowing the module.magnificent-furniture-73003
12/06/2025, 8:05 AM>>> print("signature:", inspect.signature(elevenlabs.STT))
signature: (api_key: 'NotGivenOr[str]' = NOT_GIVEN, base_url: 'NotGivenOr[str]' = NOT_GIVEN, http_session: 'aiohttp.ClientSession | None' = None, language_code: 'NotGivenOr[str]' = NOT_GIVEN, tag_audio_events: 'bool' = True) -> 'None'
>>> print("object:", elevenlabs.STT)
object: <class 'livekit.plugins.elevenlabs.stt.STT'>
>>> print("init qualname:", elevenlabs.STT.__init__.__qualname__)
init qualname: STT.__init__
>>> print("file:", inspect.getfile(elevenlabs))
file: /Users/vivek/Desktop/Personal/revspot/agent-starter-python/.venv/lib/python3.11/site-packages/livekit/plugins/elevenlabs/__init__.pytall-airline-16756
12/06/2025, 8:05 AMelevenlabs.STT constructor for your installed plugin version accepts these parameters:
(api_key, base_url, http_session, language_code, tag_audio_events)
So passing model or model_id will raise a TypeError. To fix this:
• Remove model / model_id from elevenlabs.STT(...).
• If you want the default ElevenLabs realtime model, just initialize without model arguments:
stt = elevenlabs.STT()
• If you need to set language or other advanced options, use the supported keyword language_code, e.g.:
stt = elevenlabs.STT(language_code="en-US")
• If you need to choose a specific ElevenLabs model (like scribe_v2_realtime) or other model-level options not exposed by this plugin, use LiveKit Inference instead:
from livekit.agents import inference
stt = inference.STT(model="elevenlabs/scribe_v2_realtime", language="en-US")
Finally, ensure your ElevenLabs API key is set (pass api_key="..." to the constructor or set it in env) if you haven’t already.
Do you want me to suggest the exact updated snippet for your file (I can show it with your current LLM/STT combo)?