UNPKG

ivr-tester

Version:

An automated testing framework for IVR call flows

18 lines (17 loc) 494 B
/// <reference types="node" /> import { Emitter } from "../../../Emitter"; export interface TranscriptEvent { /** * Indicates whether the transcription isn't going to change */ isFinal: boolean; transcription: string; } export declare type TranscriptionEvents = { transcription: TranscriptEvent; }; export interface TranscriberPlugin extends Emitter<TranscriptionEvents> { close(): void; transcribe(payload: Buffer): void; transcriptionComplete(): void; }