Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix: commit audio buffer before WebSocket close to prevent transcript loss
Gabriel Stein8d49b88b09ef
diff --git a/src/helpers/openaiRealtimeStreaming.js b/src/helpers/openaiRealtimeStreaming.jsindex 81284f26d..f5674123e 100644--- a/src/helpers/openaiRealtimeStreaming.js+++ b/src/helpers/openaiRealtimeStreaming.js@@ -211,6 +211,12 @@ class OpenAIRealtimeStreaming {this.isDisconnecting = true;if (this.ws.readyState === WebSocket.OPEN) {+ if (this.audioBytesSent > 0) {+ try {+ this.ws.send(JSON.stringify({ type: "input_audio_buffer.commit" }));+ } catch {}+ }+let timeoutId;const result = await Promise.race([new Promise((resolve) => {