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(meeting): prevent partial transcript spam and duplicate final segments
Gabriel Stein8b8d45326ef6
diff --git a/src/helpers/openaiRealtimeStreaming.js b/src/helpers/openaiRealtimeStreaming.jsindex fc02fc59e..ee16ca68c 100644--- a/src/helpers/openaiRealtimeStreaming.js+++ b/src/helpers/openaiRealtimeStreaming.js@@ -174,8 +174,11 @@ class OpenAIRealtimeStreaming {}case "conversation.item.input_audio_transcription.delta": {- this.currentPartial += event.delta || "";- this.onPartialTranscript?.(this.currentPartial);+ const delta = event.delta || "";+ if (delta) {+ this.currentPartial += delta;+ this.onPartialTranscript?.(this.currentPartial);+ }break;}@@ -185,15 +188,17 @@ class OpenAIRealtimeStreaming {this.completedSegments.push(transcript);}this.currentPartial = "";- const fullText = this.getFullTranscript();const speechTimestamp = this.speechStartedAt || Date.now();this.speechStartedAt = null;- this.onFinalTranscript?.(fullText, speechTimestamp);- debugLogger.debug("OpenAI Realtime turn completed", {- turnText: transcript.slice(0, 100),- totalLength: fullText.length,- segments: this.completedSegments.length,- });+ if (transcript) {+ const fullText = this.getFullTranscript();+ this.onFinalTranscript?.(fullText, speechTimestamp);+ debugLogger.debug("OpenAI Realtime turn completed", {+ turnText: transcript.slice(0, 100),+ totalLength: fullText.length,+ segments: this.completedSegments.length,+ });+ }break;}