diff --git a/src/StreamingClient.ts b/src/StreamingClient.ts index 9b1e8c6..e431949 100644 --- a/src/StreamingClient.ts +++ b/src/StreamingClient.ts @@ -4,7 +4,7 @@ import { Writable } from "stream" import { createDebugger } from "./utils" import { TranscribeException } from "./TranscribeException" import { fromBinary, toBinary } from "./aws-message-utils" -import { TranscriptEvent } from "."; +import { TranscriptEvent } from "." const debugLog = createDebugger(__filename) diff --git a/src/types.ts b/src/types.ts index 660588d..c3facd8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -73,27 +73,27 @@ export interface AwsEventMessage { } interface TranscribeItem { - Content: string, - EndTime: number, - StartTime: number, - Type: 'pronunciation' | 'punctuation' -}; + Content: string + EndTime: number + StartTime: number + Type: "pronunciation" | "punctuation" +} interface TranscribeAlternative { - Items: Array, - Transcript: string -}; + Items: TranscribeItem[] + Transcript: string +} interface TranscribeResult { - Alternatives: Array, - EndTime: number, - IsPartial: Boolean, - ResultId: string, - StartTime: number -}; + Alternatives: TranscribeAlternative[] + EndTime: number + IsPartial: boolean + ResultId: string + StartTime: number +} export interface TranscriptEvent { - Transcript: { - Results: Array - } + Transcript: { + Results: TranscribeResult[] + } }