Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Lint TranscriptEvent #6

Merged
merged 1 commit into from
Jun 6, 2020
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/StreamingClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
34 changes: 17 additions & 17 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<TranscribeItem>,
Transcript: string
};
Items: TranscribeItem[]
Transcript: string
}

interface TranscribeResult {
Alternatives: Array<TranscribeAlternative>,
EndTime: number,
IsPartial: Boolean,
ResultId: string,
StartTime: number
};
Alternatives: TranscribeAlternative[]
EndTime: number
IsPartial: boolean
ResultId: string
StartTime: number
}

export interface TranscriptEvent {
Transcript: {
Results: Array<TranscribeResult>
}
Transcript: {
Results: TranscribeResult[]
}
}