Download a recording
In this code snippet you see how to download a recording.
Example
Replace the following variables in the example code:
| Key | Description |
|---|---|
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 file named DownloadRecording and add the following code to the main method:
Run your code
We can use the application 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 file named DownloadRecording and add the following code to the main method:
Run your code
We can use the application 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:
Try it out
You will need a Recording URL from which to download the recording file. You typically get this from the JSON response received on the /webhooks/recordings endpoint when the record action is used when recording a call, connecting another call and so on. A typical JSON response will resemble the following:
When you run the script, the recording located at the recording URL will be downloaded. You can then listen to the recording.
Further Reading
- Transcription - This guide shows you how to use the Amazon Transcribe API to transcribe a phone conversation recorded with the Vonage Voice API.