diff --git a/src/lib/types/LiveTranscriptionEvent.ts b/src/lib/types/LiveTranscriptionEvent.ts index c4f5e53..20bad29 100644 --- a/src/lib/types/LiveTranscriptionEvent.ts +++ b/src/lib/types/LiveTranscriptionEvent.ts @@ -9,11 +9,13 @@ export interface LiveTranscriptionEvent { alternatives: { transcript: string; confidence: number; + languages: string[]; words: { word: string; start: number; end: number; confidence: number; + language: string; punctuated_word: string; }[]; }[]; diff --git a/src/lib/types/SyncPrerecordedResponse.ts b/src/lib/types/SyncPrerecordedResponse.ts index 6537c57..a0b5122 100644 --- a/src/lib/types/SyncPrerecordedResponse.ts +++ b/src/lib/types/SyncPrerecordedResponse.ts @@ -12,6 +12,7 @@ interface Alternative { entities?: Entity[]; translations?: Translation[]; topics?: TopicGroup[]; + languages?: string[]; } interface Channel { @@ -208,4 +209,5 @@ interface WordBase { punctuated_word?: string; speaker?: number; speaker_confidence?: number; + language?: string; }