classify_music_speech
Classify an audio file as music, speech, neither, or unknown and return frame-level probabilities to help identify content type and mixed segments.
Instructions
Classify one audio file as music, speech, neither or unknown, with frame-level probabilities.
This detects the presence of music and speech; it does not detect AI-generated music (use detect_ai_music for that). The result is a model signal. The audio is uploaded to Modulate's Velma API. Allowed formats: the wide audio/video list (for example wav, mp3, m4a, flac, ogg, opus, mp4, webm, mov). Max 100 MB. Returns filename, duration_s, primary_label, music_pct, speech_pct (percent of the clip), latency_ms and 'frames' (about 192 ms each: start_time_ms, end_time_ms, music_prob, speech_prob). Music and speech are not mutually exclusive in a frame. 'frames' can be long for long audio.
file_path: path to the audio file, relative to VELMA_MCP_BASE_PATH or absolute inside it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "classify_music_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||