Upload flow
The three-step upload process:1
Request upload URL
Call the API to get a presigned URL and upload credentials
2
Upload to storage
POST the file directly to cloud storage using the presigned URL
3
Confirm upload
Notify the API that the upload completed, triggering processing
Supported formats
Maximum file size: 500 MB
Uploading to a dataset
Use this flow when uploading audio files for training.Step 1: Request upload URL
Python
Step 2: Upload the file
Upload directly to the presigned URL using multipart form data:Python
Step 3: Confirm upload
Notify Relay that the upload completed:Python
Processing pipeline
After confirmation, Relay processes the audio:- Normalizing: Convert to 16kHz mono WAV format
- Embedding: Compute audio embeddings for training
Python
Processing statuses
Bulk uploads
For multiple files, upload in parallel for best performance:Python
Uploading for inference
Inference uploads follow the same pattern but use different endpoints:Python
Downloading audio
Download audio files using presigned URLs:Python
Python
Error handling
Common upload errors
Handling failed processing
If audio processing fails:Python
