@iot9x.com/nestjs-ucpaas-voice
Version:
nestjs 云之讯平台语音集成插件
24 lines (23 loc) • 995 B
TypeScript
import { UcpaasVoiceContentType } from '../../../constants/ucpaas.constant';
export interface VoiceNotifyParams {
/** 被叫号码[变更] */
callee: string;
/** 语音通知的被叫侧显示的号码[变更] */
caller?: string;
/** 内容类型:0:文本;1:语音ID;2:模板 */
type: UcpaasVoiceContentType;
/** 语音通知播放次数,默认是1次 */
playTimes?: number;
/** 模板ID,当type为2时必传 */
templateId?: string;
/** 当type为0时:文本内容,平台负责将该内容转成语音,呼通指定号码后,播放该语音文件;
* 当type为1时:表示语音ID(语音文件必须先上传);
* 当type为2时:表示模板参数值,形式为json格式,如 {"var1":"aa","var2":"bb"} */
content: string;
/** 话单推送url */
billUrl?: string;
/** 状态推送Url */
statusUrl?: string;
/** 用户自定义透传字段,128字节大小 */
requestId?: string;
}