We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b681b4d commit bd4bec3Copy full SHA for bd4bec3
1 file changed
src/mobile/src/features/ai-jobs/utils/transcript.ts
@@ -61,8 +61,10 @@ export function buildTranscriptViewSegments(
61
if (!transcript) return []
62
63
// We need to fix the speaker from WhisperX
64
- const speakerMapped = new Map<string | null, string>()
+ const speakerMapped = new Map<string, string>()
65
const getSpeaker = (speaker: string | null): string | null => {
66
+ if (!speaker) return null
67
+
68
if (!speakerMapped.has(speaker)) {
69
speakerMapped.set(speaker, String(speakerMapped.size + 1))
70
}
0 commit comments