@voice-ping/cognitive-services-speech
Version:
VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft
24 lines (23 loc) • 725 B
TypeScript
import { RecognitionStatus } from "../Exports";
export interface ISimpleSpeechPhrase {
RecognitionStatus: RecognitionStatus;
DisplayText: string;
Offset?: number;
Duration?: number;
PrimaryLanguage?: IPrimaryLanguage;
}
export interface IPrimaryLanguage {
Language: string;
Confidence: string;
}
export declare class SimpleSpeechPhrase implements ISimpleSpeechPhrase {
private privSimpleSpeechPhrase;
private constructor();
static fromJSON(json: string): SimpleSpeechPhrase;
get RecognitionStatus(): RecognitionStatus;
get DisplayText(): string;
get Offset(): number;
get Duration(): number;
get Language(): string;
get LanguageDetectionConfidence(): string;
}