Prerequisites
- A Relay account (sign up at app.relayai.dev)
- An API key (create one in Settings > API Keys)
Step 1: Get your API key
- Sign in to app.relayai.dev
- Navigate to Settings > API Keys
- Click Create API Key
- Copy and save your key securely
Step 2: Create a dataset
A dataset defines what artifact types you want to detect. Create one with the artifact types relevant to your use case:Save the
id from the response. You’ll need it for subsequent steps.Step 3: Upload audio files
Audio upload uses presigned URLs for direct upload to cloud storage. The flow is:- Request a presigned upload URL
- Upload the file to the URL
- Confirm the upload
Request upload URL
Upload the file
Confirm upload
Python
Step 4: Add annotations
Create an annotation set and add annotations marking where artifacts occur:Create annotation set
Add annotations
Each annotation specifies which audio file, the artifact type, and the start/end timestamps in milliseconds:Publish the annotation set
Before training, you must publish the annotation set. Published sets are immutable.Step 5: Train a model
Submit a training job with your dataset and published annotation set:Python
Step 6: Run inference
Once training completes, a model is created automatically. Create an inference job and upload audio to detect artifacts:Create inference job
Upload audio for inference
Upload audio using the same presigned URL flow:Python
Get detection results
Next steps
Uploading Audio
Learn about supported formats and bulk uploads
Creating Annotations
Best practices for labeling your data
Training Models
Configure training parameters
Understanding Results
Interpret detection confidence scores
