録音をダウンロードする
このコード・スニペットでは、録画をダウンロードする方法を説明します。
例
サンプルコードの以下の変数を置き換える:
| キー | 説明 |
|---|---|
VOICE_RECORDING_URL | The URL of the recording to download. You typically get this from the JSON response received on the |
Prerequisites
Execute the following command at your terminal prompt to create the JWT for authentication:
Run your code
Save this file to your machine and run it:
Prerequisites
Create a file named download-a-recording.js and add the following code:
Run your code
Save this file to your machine and run it:
Prerequisites
Add the following to build.gradle:
Create a class named DownloadRecording and add the following code to the main method:
Run your code
We can use the アプリケーション plugin for Gradle to simplify the running of our application. Update your build.gradle with the following:
Run the following gradle command to execute your application, replacing com.vonage.quickstart.kt.voice with the package containing DownloadRecording:
Prerequisites
Add the following to build.gradle:
Create a class named DownloadRecording and add the following code to the main method:
Run your code
We can use the アプリケーション plugin for Gradle to simplify the running of our application. Update your build.gradle with the following:
Run the following gradle command to execute your application, replacing com.vonage.quickstart.voice with the package containing DownloadRecording:
Prerequisites
Prerequisites
Run your code
Save this file to your machine and run it:
Prerequisites
Run your code
Save this file to your machine and run it:
Prerequisites
Run your code
Save this file to your machine and run it:
試してみる
録画ファイルをダウンロードするには、録画URLが必要です。通常、これは /webhooks/recordings エンドポイント record アクションは 通話録音別の呼び出しに接続する、といった具合だ。典型的なJSONレスポンスは以下のようなものである:
スクリプトを実行すると、録画URLにある録画がダウンロードされます。 にある録音がダウンロードされます。その後、録音を聴くことができます。
さらに読む
- トランスクリプション - このガイドでは、Amazon Transcribe APIを使って、Vonage Voice APIで録音した電話での会話を書き起こす方法を紹介します。