Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes transcript parts being hidden #1737

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/transcript/Transcript.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
export let show: Show;

const slim_transcript: SlimUtterance[] = getSlimUtterances(transcript.utterances, 1)
.filter((utterance) => utterance.speakerId !== 99)
// .filter((utterance) => utterance.speakerId !== 99)
.filter((utterance) => {
// Remove the flagging utterances
const scott = new RegExp(/purple cheese before meeting/gi);
Expand Down
6 changes: 3 additions & 3 deletions src/server/transcripts/transcripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function save_transcript_to_db(show: Show, utterances: Utterance[])
punctuated_word: word.punctuated_word || word.word,
word: word.word,
speaker_confidence: word.confidence,
speaker: word.speaker || 99,
speaker: word.speaker ?? 99,
confidence: word.confidence
};
});
Expand All @@ -33,8 +33,8 @@ export async function save_transcript_to_db(show: Show, utterances: Utterance[])
transcript_value: utterance.transcript,
channel: utterance.channel,
confidence: utterance.confidence,
speaker: utterance.speaker || 99,
speakerName: speakerMap.get(utterance.speaker || 99),
speaker: utterance.speaker ?? 99,
speakerName: speakerMap.get(utterance.speaker ?? 99),
words: {
create: words
}
Expand Down
Loading