通話録音
音声プロバイダーの getCallRecording 関数で返されたURLから通話録音をダウンロードすることができます。 Voice API イベントが発生する。
メソッド署名
getCallRecording(recordingUrl: string)
通話録音の取得
const session = vcr.createSession();
const voice = new Voice(session);
const stream = await voice.getCallRecording('$RECORDING_URL');
stream.pipe(fs.createWriteStream('$PATH'));
通話録音を資産にアップロードする
Vonage Cloud Runtime SDKにはヘルパー関数があり、Voice APIコールを直接 資産プロバイダー.
メソッド署名
uploadCallRecording(recordingUrl: string, assetsPath: string)
通話録音をアセットにアップロードする
const session = vcr.createSession();
const voice = new Voice(session);
await voice.uploadCallRecording('$RECORDING_URL', '/calls');