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:
Chinseok Lee
2024-10-05 16:21:08 +09:00
parent 3826b11a1f
commit 7d0a3a6896
@@ -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":