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

Commit

Permalink
Lint TranscriptEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads committed Jun 4, 2020
1 parent 1f28d76 commit c09eb26
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
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[]
}
}

0 comments on commit c09eb26

Please sign in to comment.