@iot9x.com/nestjs-ucpaas-voice
Version:
nestjs 云之讯平台语音集成插件
18 lines (17 loc) • 811 B
TypeScript
import { HttpService } from '@nestjs/axios';
import { UcpaasVoiceV1ModuleOptions } from '../interfaces/options.interface';
import { RegexUtil } from '../utils/regex.util';
import { VoiceNotifyParams } from '../interfaces/params/voice-notify/voice-notify-params.interface';
import { VoiceNotifyResponse } from '../interfaces/response/voice/voice-notify.response.interface';
export declare class UcpaasSendService {
private readonly options;
private readonly httpService;
private readonly regexUtil;
constructor(options: UcpaasVoiceV1ModuleOptions, httpService: HttpService, regexUtil: RegexUtil);
/**
* 发送语音通知
* @param params 发送语音通知请求参数
* @returns 发送结果
*/
voiceNotify(params: VoiceNotifyParams): Promise<VoiceNotifyResponse>;
}