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

Commit

Permalink
Merge pull request #6 from orgads/lint-type
Browse files Browse the repository at this point in the history
Lint TranscriptEvent
  • Loading branch information
qasim9872 authored Jun 6, 2020
2 parents 1f28d76 + c09eb26 commit d6bf9b7
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 d6bf9b7

Please sign in to comment.