tall-fireman-17525
09/16/2025, 9:03 AMconversation_item_added event does not capture user's transcript when using OpenAI's Realtime API? It only captures the AI's transcript.
Here is my LLM setup (👇 attached snippet)
Here is my `conversation_item_added`:
@agent.on("conversation_item_added")
def on_conversation_item_added(ev: ConversationItemAddedEvent):
if not ev.item.text_content:
return
print(f"Saving transcript: {ev.item.text_content}")jolly-air-155
09/16/2025, 3:09 PMconversation_item_added for the user transcript. you can subscribe to the user_input_transcribed event if you want user transcriptionshappy-night-10979
09/16/2025, 4:02 PMsession.on(
voice.AgentSessionEventTypes.ConversationItemAdded,
async (event: voice.ConversationItemAddedEvent) => {
try {
const chatRole: ChatRole = event.item.role;
const role = chatRole === "user" ? "USER" : chatRole === "assistant" ? "AGENT" : "OTHER";
logger.info(
`Conversation item added from ${role}: ${event.item.textContent}. interrupted: ${event.item.interrupted}`
);tall-fireman-17525
09/16/2025, 4:06 PMtall-fireman-17525
09/16/2025, 4:25 PMuser_input_transcribed also captures nothing for Realtime API 😞tall-fireman-17525
09/17/2025, 7:34 AMERROR livekit.plugins.openai - OpenAI Realtime API returned an error {"error": "RealtimeError(message=\"Invalid value: ''. Supported values are: 'alloy', 'ash', 'ballad', 'coral', 'echo', 'sage', 'shimmer', 'verse', 'marin', and 'cedar'.\", type='invalid_request_error', code='invalid_value', event_id='session_update_cb5cd31f220b', param='session.audio.output.voice')", "pid": 95054, "job_id": "AJ_RqQRKyA7kBjQ"}
OR
ERROR livekit.plugins.openai - OpenAI Realtime API returned an error {"error": "RealtimeError(message=\"Invalid type for 'session.audio.input.turn_detection.eagerness': expected one of 'low', 'medium', 'high', or 'auto', but got null instead.\", type='invalid_request_error', code='invalid_type', event_id='session_update_1deaa615284e', param='session.audio.input.turn_detection.eagerness')", "pid": 96110, "job_id": "AJ_S9rqTM5kZKzT"}
This kind of error causes the agent to run erratically, e.g. textual user transcript is not captured at all, and the speaking AI is sometimes captured as user's speaking (hence it keeps answering itself).bitter-twilight-94459
09/21/2025, 10:55 PMjolly-air-155
09/22/2025, 12:25 AMbitter-twilight-94459
09/22/2025, 6:46 AMbitter-twilight-94459
09/22/2025, 6:48 AMjolly-air-155
09/22/2025, 8:13 AMjolly-air-155
09/22/2025, 8:14 AMbitter-twilight-94459
09/26/2025, 1:17 AMtall-fireman-17525
09/30/2025, 2:44 PM