.wav file of the MIDI output and export note events into a .csv file for further analysis or editing.
Ideal for music production, remixing, and advanced audio content creation.
Endpoint
Sample Output
Generated MIDI and optional outputs from a sample audio file: Download MIDI(.mid) Download Sonified MIDI(.wav)Try it Yourself
Visit the Audio to MIDI Endpoint Explorer to test it live. Upload an audio file, and get back the MIDI version!🛠️ Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
audio_path | String | ✅ Yes | - | The S3 path of the input audio file to convert. |
sonify_midi | Boolean | Optional | true | If true, generates a .wav file that plays the MIDI output. |
save_note_events | Boolean | Optional | true | If true, saves predicted note events as a .csv file. |
webhook_url | String | Optional | "" | Callback URL for asynchronous result delivery. |
💡Note: audio_path must be a valid and accessible S3 URL.
content-type: multipart/form-data
Sample Request
cURL
Python
🔐 Replaceapi_key,audio_path, andwebhook_urlwith your own values before sending.
Sample Response
Success (200 OK)
Common Errors
- 400 Bad Request: Invalid
audio_pathor missing required parameters. - 404 Not Found: Provided audio file not found in S3.
- 422 Unprocessable Entity: Unsupported audio format.
- 500 Internal Server Error: An unexpected error occurred while processing.
Webhook Response
When the conversion process completes, if awebhook_url was provided, the system sends a POST request:
Payload and Request Formation
Authorizations
Body
multipart/form-data
- Option 1
- Option 2
URL of the audio file to convert to MIDI.
Example:
"https://example.com/audio.mp3"
Audio file to upload and process directly.
If true, generates a .wav file that sonifies the MIDI output.
If true, saves predicted note events as a CSV file.
Callback URL to receive conversion results.
Example:
"https://your-webhook-url.com/callback"