Skip to content

Commit

Permalink
fix(types): nested arrays in LiveTranscriptionEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
ftr-lwilson committed Oct 24, 2023
1 parent 681d746 commit 73ad0ee
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions src/lib/types/LiveTranscriptionEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 73ad0ee

Please sign in to comment.