From 73ad0ee23a74739e3429eafedfbf1628b7d37d7b Mon Sep 17 00:00:00 2001 From: Luke Wilson Date: Wed, 25 Oct 2023 08:36:08 +1000 Subject: [PATCH] fix(types): nested arrays in LiveTranscriptionEvent --- src/lib/types/LiveTranscriptionEvent.ts | 26 +++++++++++-------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/lib/types/LiveTranscriptionEvent.ts b/src/lib/types/LiveTranscriptionEvent.ts index f2a54952..31d07ac7 100644 --- a/src/lib/types/LiveTranscriptionEvent.ts +++ b/src/lib/types/LiveTranscriptionEvent.ts @@ -6,21 +6,17 @@ export interface LiveTranscriptionEvent { is_final?: boolean; speech_final?: boolean; channel: { - alternatives: [ - { - transcript: string; - confidence: boolean; - words: [ - { - word: string; - start: number; - end: number; - confidence: number; - punctuated_word: string; - } - ]; - } - ]; + alternatives: { + transcript: string; + confidence: boolean; + words: { + word: string; + start: number; + end: number; + confidence: number; + punctuated_word: string; + }[]; + }[]; }; metadata: { request_id: string;