@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
17 lines (16 loc) • 501 B
TypeScript
import { ITranslations } from "../Exports";
export interface ITranslationHypothesis {
Duration: number;
Offset: number;
Text: string;
Translation: ITranslations;
}
export declare class TranslationHypothesis implements ITranslationHypothesis {
private privTranslationHypothesis;
private constructor();
static fromJSON(json: string): TranslationHypothesis;
get Duration(): number;
get Offset(): number;
get Text(): string;
get Translation(): ITranslations;
}