UNPKG

@voice-ping/cognitive-services-speech

Version:

VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft

18 lines (17 loc) 534 B
import { IPrimaryLanguage } from "./SimpleSpeechPhrase"; export interface ISpeechHypothesis { Text: string; Offset: number; Duration: number; PrimaryLanguage?: IPrimaryLanguage; } export declare class SpeechHypothesis implements ISpeechHypothesis { private privSpeechHypothesis; private constructor(); static fromJSON(json: string): SpeechHypothesis; get Text(): string; get Offset(): number; get Duration(): number; get Language(): string; get LanguageDetectionConfidence(): string; }