UNPKG

ivr-tester-transcriber-amazon-transcribe

Version:
18 lines (17 loc) 701 B
/// <reference types="node" /> import { TranscriberPlugin, TranscriptionEvents, TypedEmitter } from "ivr-tester"; import { AVAILABLE_REGIONS, LANGUAGES } from "aws-transcribe/dist/types"; export declare class AmazonTranscribe extends TypedEmitter<TranscriptionEvents> implements TranscriberPlugin { private readonly region; private readonly languageCode; private static readonly debug; private readonly config; private stream; constructor(region: AVAILABLE_REGIONS, languageCode: LANGUAGES); private static convertAudioEncoding; private getStream; private createStream; close(): void; transcribe(payload: Buffer): void; transcriptionComplete(): void; }