No Audio Interruption event

无音频中断事件
https://ift.tt/G4FiYBS
嗨,gregory_buffard,
是的,在使用 WebSocket 传输时这是预期的行为,你并没有做错什么。
在 Realtime API 中,音频中断在 WebSocket 与 WebRTC 上的处理方式不同。WebRTC 上,服务器管理音频播放,因此它可以在播放被中断时自动检测并触发更高层次的中断事件。WebSocket 上,客户端拥有音频播放权,因此服务器不知道实际听到了哪些音频,这意味着诸如 audio_interrupted 之类的事件可能永远不会触发。
相反,文档指出在使用 WebSocket 时,input_audio_buffer.speech_started 是你应依赖的信号。当你收到该事件时,你应当:
在本地停止播放,
记录已播放的音频量,
并使用 audio_end_ms 发送 conversation.item.truncate,以截断尚未播放的音频。
如果你希望中断能够自动处理(包括服务器端截断和更高层次的中断语义),你需要改用 WebRTC 传输。
解释此流程的文档:
实时中断与截断(WebSocket vs WebRTC):
https://ift.tt/0urcUtS
事件参考(input_audio_buffer.speech_started、conversation.item.truncate):
https://ift.tt/IubmDaR
HI-FI News
来自 OpenAI 开发者社区 – 最新帖子 https://ift.tt/5uhULP9
2026年1月28日 上午11:20
January 28, 2026 at 11:20AM
-
Product on sale
Audiophile Vinyl Records Cleaning BundleOriginal price was: €83.88.€73.88Current price is: €73.88. incl. VAT -
Product on sale
Easy Start Vinyl Records Cleaning KitOriginal price was: €83.88.€73.88Current price is: €73.88. incl. VAT -
Vinyl Records Cleaner Easy Groove Concentrate€41.94 incl. VAT -
Easy Groove Super Set€238.80 incl. VAT -
Easy Groove Enzycaster – vinyl records prewash cleaner€41.94 incl. VAT -
Easy Groove Extreme MK. II- vinyl records prewash cleaner€54.00 incl. VAT -
Vinyl Records Cleaner – Easy Groove Virgin Concentrate€42.00 incl. VAT -
Easy Groove Spray&Wipe vinyl records cleaner€41.94 incl. VAT








