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