polite-oil-10264
10/24/2025, 2:32 PMtall-airline-16756
10/24/2025, 2:32 PMtall-airline-16756
10/24/2025, 2:33 PMaudio_enabled=False in both RoomInputOptions and RoomOutputOptions. Then, use the TextStream to send and receive text messages smoothly.
• For client-side apps, LiveKit SDKs make it easy to send and stream text messages in real-time. For example, in JavaScript, you can use localParticipant.sendText or localParticipant.streamText to handle text communication effortlessly.
If you'd like, I can share some detailed code examples or walk you through any part of this. Just let me know—I’m here to help!
Sources: README.md | examples/basic_text_stream/README.md | Text and transcriptions | LiveKit Docs | examples/voice_agents/realtime_load_chat_history.py | Sending text | LiveKit Docspolite-oil-10264
10/24/2025, 2:36 PMtall-airline-16756
10/24/2025, 2:37 PMasync def entrypoint(ctx: JobContext):
session = AgentSession(
llm=openai.LLM(model="gpt-4o-mini"),
# No TTS or STT needed here
)
await session.start(
agent=MyAgent(),
room=ctx.room,
room_input_options=RoomInputOptions(text_enabled=True, audio_enabled=False),
room_output_options=RoomOutputOptions(transcription_enabled=True, audio_enabled=False),
)
Here’s what’s happening in this setup:
• text_enabled=True makes sure text input is turned on.
• audio_enabled=False turns off audio input and output.
• The LLM directly processes your text input and responds with text.
If you have any questions or want me to walk you through more examples, just let me know—I’m here to help!