@onereach/step-voice
Version:
Onereach.ai Voice Steps
31 lines (30 loc) • 781 B
TypeScript
import VoiceStep, { SensitiveData, TODO, VoiceEvent } from './voice';
interface INPUT {
textType: string;
asr: TODO;
tts: TODO;
audio: TODO[];
prompts: TODO[];
usePromptsForUnrecognized?: boolean;
sensitiveData: SensitiveData;
noReplyDelay: number;
interTimeout: number;
endUserInputValidationOther: TODO;
keypadBargeIn: boolean;
endInput: TODO;
terminationKey: string;
expectedNumberOfDigits: number;
regExToValidate: string;
mfVersion: string;
recognitionModel?: string;
}
interface EVENT extends VoiceEvent {
exitId?: string;
digits?: string;
phrases?: TODO[];
tags?: string[];
}
export default class KeypadInput extends VoiceStep<INPUT, {}, EVENT> {
runStep(): Promise<void>;
}
export {};