```
feat: add audio buffering and interruption handling for voice input Implement processing phase tracking (idle/transcribing/llm) and audio segment buffering to handle speech interruptions gracefully. Adds abort_request message type and buffer timeout mechanism to process accumulated audio segments together. ```
This commit is contained in:
@@ -435,6 +435,12 @@ function App() {
|
||||
audioPlayerRef.current.stop();
|
||||
setIsPlayingAudio(false);
|
||||
setCurrentAssistantMessage("");
|
||||
|
||||
// Send abort request to server immediately
|
||||
ws.send({
|
||||
type: "abort_request",
|
||||
payload: {},
|
||||
});
|
||||
},
|
||||
onSpeechEnd: async (audioData: Float32Array) => {
|
||||
console.log("[App] Speech ended, processing...");
|
||||
|
||||
Reference in New Issue
Block a user