delightful-airline-96880
02/17/2025, 2:10 PM@assistant.on("user_speech_committed")
def user_speech_committed():
<http://logger.info|logger.info>(f"user_speech_committed")
How to get final transcribed user input?gray-monkey-83525
02/17/2025, 2:10 PMuser_speech_committed
event. This event is triggered when the user's speech is committed to the chat context. You can access the transcribed text from the msg
parameter passed to the event handler. Here's an example:
@assistant.on("user_speech_committed")
def user_speech_committed(msg: llm.ChatMessage):
logger.info(f"User speech committed: {msg.content}")
This will log the final transcribed user input. Would you like more details on this process?
Sources:
- https://livekit-users.slack.com/archives/C07FY8WHGPM/p1729597029.187099
- https://docs.livekit.io/python/livekit/agents/pipeline/pipeline_agent.html#args 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.