<@U084APK40NS> ```@assistant.on("user_speech_commi...
# ask-ai
d
@millions-hair-24956
Copy code
@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?
g
To get the final transcribed user input, you can use the
user_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:
Copy code
@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.