@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
16 lines (15 loc) • 1.3 kB
TypeScript
import { IAudioSource } from "../common/Exports";
import { CancellationErrorCode, CancellationReason, SpeechRecognitionResult, TranslationRecognitionResult, TranslationRecognizer } from "../sdk/Exports";
import { ServiceRecognizerBase } from "./Exports";
import { IAuthentication } from "./IAuthentication";
import { IConnectionFactory } from "./IConnectionFactory";
import { RecognizerConfig } from "./RecognizerConfig";
import { SpeechConnectionMessage } from "./SpeechConnectionMessage.Internal";
export declare class TranslationServiceRecognizer extends ServiceRecognizerBase {
private privTranslationRecognizer;
constructor(authentication: IAuthentication, connectionFactory: IConnectionFactory, audioSource: IAudioSource, recognizerConfig: RecognizerConfig, translationRecognizer: TranslationRecognizer);
protected processTypeSpecificMessages(connectionMessage: SpeechConnectionMessage, successCallback?: (e: TranslationRecognitionResult) => void, errorCallBack?: (e: string) => void): void;
protected cancelRecognition(sessionId: string, requestId: string, cancellationReason: CancellationReason, errorCode: CancellationErrorCode, error: string, cancelRecoCallback: (e: SpeechRecognitionResult) => void): void;
private fireEventForResult;
private sendSynthesisAudio;
}