rapid-painting-51133
12/17/2025, 9:55 PMtall-airline-16756
12/17/2025, 9:55 PMtall-airline-16756
12/17/2025, 9:55 PMtext_enabled attribute on RoomOptions.
This happens because RoomOptions uses text_input (boolean or TextInputOptions) to control text input, not text_enabled. Replace any text_enabled usage with text_input.
Example fix:
from livekit.agents.voice import room_io
await session.start(
agent=MyAgent(),
room=ctx.room,
room_options=room_io.RoomOptions(
text_input=True
)
)
If you still get errors after that, please tell me:
• the LiveKit Agents package version (pip show livekit-agents), and
• the snippet where you construct RoomOptions (or paste the relevant lines). Sources: Agent session | LiveKit docsrapid-painting-51133
12/17/2025, 9:56 PMrapid-painting-51133
12/17/2025, 9:56 PMtall-airline-16756
12/17/2025, 9:57 PMRoomOptions instance, and that leads to the AttributeError for text_enabled.
To diagnose quickly, please paste these exact items:
1. The full session.start(...) call you use (all keyword args: room_options=..., room_input_options=..., room_output_options=...).
2. The exact lines where you create RoomOptions / AudioInputOptions (the constructor calls/imports).
3. Your livekit-agents package version (pip show livekit-agents).
4. Any lines you elided from the traceback (the 3 lines you replaced with <3 lines>).
5. What you want the final behavior to be (e.g., audio noise cancellation enabled, text input off).
If you want, I can propose the corrected code once you share the session.start call and the RoomOptions construction.
Sources: Text and transcriptions | LiveKit docs | Agent session | LiveKit docs