mirror of
https://github.com/langchain-ai/react-voice-agent.git
synced 2026-07-01 15:35:18 -04:00
Fix typo event_name according to official OpenAI documentation
`response.audio_buffer.speech_started` to `input_audio_buffer.speech_started` Refer to: https://platform.openai.com/docs/api-reference/realtime-server-events/input-audio-buffer-speech-started
This commit is contained in:
@@ -246,7 +246,7 @@ class OpenAIVoiceReactAgent(BaseModel):
|
||||
t = data["type"]
|
||||
if t == "response.audio.delta":
|
||||
await send_output_chunk(json.dumps(data))
|
||||
elif t == "response.audio_buffer.speech_started":
|
||||
elif t == "input_audio_buffer.speech_started":
|
||||
print("interrupt")
|
||||
send_output_chunk(json.dumps(data))
|
||||
elif t == "error":
|
||||
|
||||
Reference in New Issue
Block a user