UNPKG

ivr-tester-transcriber-google-speech-to-text

Version:
17 lines (16 loc) 728 B
/// <reference types="node" /> import { TranscriberPlugin, TranscriptionEvents, TypedEmitter } from "ivr-tester"; import internal from "stream"; export declare class GoogleSpeechToText extends TypedEmitter<TranscriptionEvents> implements TranscriberPlugin { private readonly speechClient; private static readonly debug; private static createConfig; private readonly config; private stream; constructor(languageCode: string, speechPhrases?: string[], useEnhanced?: boolean, speechClient?: import("@google-cloud/speech/build/src/v1").SpeechClient); transcribe(payload: Buffer): void; close(): void; private createStream; getStream(): internal.Writable; transcriptionComplete(): void; }