Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

chore: remove unnecessary comments

Chadpihaf1f4e6ce4ede
diff --git a/src/helpers/transcriptFormatter.js b/src/helpers/transcriptFormatter.js
index a1707863b..3b09fd979 100644
--- a/src/helpers/transcriptFormatter.js
+++ b/src/helpers/transcriptFormatter.js
@@ -3,9 +3,6 @@ const { i18nMain } = require("./i18nMain");
function resolveSpeaker(seg, speakerMappings) {
if (seg.speakerName && !seg.speakerIsPlaceholder) return seg.speakerName;
if (seg.speaker && speakerMappings[seg.speaker]) return speakerMappings[seg.speaker];
- // Diarization stamps mic segments with "you"; segments it never touched fall
- // through to the source check below. Both are the speaker, so both resolve
- // through the same key — otherwise one person renders under two names.
if (seg.speaker === "you") return i18nMain.t("transcript.speaker.you");
if (seg.speaker) {
const num = parseInt(seg.speaker.replace("speaker_", ""), 10);
diff --git a/test/helpers/transcriptFormatter.test.js b/test/helpers/transcriptFormatter.test.js
index 5ca90e66d..71bd3e419 100644
--- a/test/helpers/transcriptFormatter.test.js
+++ b/test/helpers/transcriptFormatter.test.js
@@ -180,9 +180,6 @@ test("a manually named segment does not absorb the adjacent un-named one", () =>
});
test("own-voice segments share one label whether or not diarization stamped them", (t) => {
- // Diarization stamps mic segments with speaker "you"; a transcript saved
- // before (or without) it keeps the un-stamped shape. Both are the same
- // person and must render identically under any UI language.
changeLanguage("de");
t.after(() => changeLanguage("en"));