Processes an audio file to extract key changes, dominant key, and BPM (Beats Per Minute).
Extract key and BPM (beats per minute) from an input audio file with optional webhook callback for asynchronous updates.Documentation Index
Fetch the complete documentation index at: https://docs.musicgpt.com/llms.txt
Use this file to discover all available pages before exploring further.
webhook_url to receive asynchronous results.
| Parameter | Type | Required | Description |
|---|---|---|---|
audio_url | String | Optional | The URL of an audio file to analyze. Either audio_url or audio_file must be provided. |
audio_file | UploadFile | Optional | Upload the audio file directly. Either audio_url or audio_file must be provided. |
webhook_url | String | Optional | Callback URL for async response. |
💡 Note: Eitheraudio_urloraudio_filemust be provided — one is required.
content-type: multipart/form-data
🔐 Replace{path_to_your_audio_file},api_key, andwebhook_urlbefore executing.
audio_url and audio_file cannot be None.key_changes: A mapping of time ranges to identified keys.dominant_key: The most prominent key throughout the audio.bpm: Estimated beats per minute.conversion_path: Path to the original input audio file.conversion_path_wav: Path to the .wav version of the input file.URL of the audio file to process (e.g., YouTube, direct audio link).
"https://www.youtube.com/watch?v=example123"
Audio file to upload and process directly.
Callback URL for async processing results.
"http://your-webhook-url.com/callback"