Some notes on using the Media APIs:
- Temporary: The audio files you upload are only temporarily stored and will be automatically removed within 48 hours.
- Secure: The media is stored in an isolated location that only you can access with your API token. It is encrypted while in transit with HTTPS. Access to the production system is controlled to prevent unauthorized use.
1. Create a storage location and get a pre-signed PUT URL
First, you need to create a temporary storage location by sending a value for theurl parameter. This endpoint returns a pre-signed PUT URL that you can use to upload your audio file.
The url should be in the form media://object-key where the object-key can be any alpha-numeric string you choose to identify your file. The object-key is unique to your team, meaning no other team can access files stored under your object keys.
For example:
media://my-audio-file-123media://meetings/2024-01-15/call.wavmedia://customer_conversation_20240115
uploadAudio.ts
2. Diarize your uploaded audio file
After you have uploaded your audio file, you can use it in e.g. a diarization job by providing the media key you created earlier asURL in the input.
createJob.ts