v1

latestOpenAPI 3.1.02026-07-22122760.2 KB

Detect music and speech in an audio file

Accepts an audio file and returns frame-level music and speech probabilities, an overall primary label, and percentage breakdowns of content type across the clip.

post/api/velma-2-music-detection-batch

Response

Detection completed successfully.

filenamestring required

Name of the submitted audio file. Empty string if no filename was provided in the upload.

duration_snumber double required

Total duration of the analysed audio in seconds.

primary_label'music' | 'speech' | 'neither' | 'unknown' required

Overall classification of the clip:

  • music - music covers at least as much of the clip as speech, and more than zero.
  • speech - speech covers more of the clip than music, and more than zero.
  • neither - neither music nor speech reached the dominant threshold for any portion of the clip.
  • unknown - no frames could be produced from the audio.
music_pctnumber double required

Percentage of the clip classified as containing music.

speech_pctnumber double required

Percentage of the clip classified as containing speech.

latency_msnumber double required

End-to-end inference time in milliseconds.

Example response

{
  "filename": "my_audio.wav",
  "duration_s": 5.76,
  "primary_label": "speech",
  "speech_pct": 86.7,
  "latency_ms": 1243.5,
  "frames": [
    {
      "end_time_ms": 3000,
      "verdict": "synthetic",
      "confidence": 0.9732
    }
  ]
}