Skip to main content
Real-time AI music detection over WebSocket. The client streams audio and receives per-window vocal AI verdicts as they become available, followed by a final clip-level summary - including instrumental AI detection - on completion.

Endpoint

Authentication

Pass your API key as a query parameter on the connection URL:

Connection parameters

Supported audio formats

Container formats - sample_rate and num_channels must not be specified (the headers already carry this metadata): wav, mp3, ogg, flac, webm, aac, aiff Raw PCM formats - sample_rate and num_channels are required: s8, s16le, s16be, s24le, s24be, s32le, s32be, u8, u16le, u16be, u24le, u24be, u32le, u32be, f32le, f32be, f64le, f64be, mulaw, alaw Valid sample rates: 8000, 11025, 16000, 22050, 32000, 44100, 48000, 96000

Protocol

Client -> server

Server -> client

Vocal AI detection runs on each 4-second window as audio arrives and is reported in window messages. Instrumental AI detection runs on the accumulated audio at end-of-stream, so instrumental_ai_percentage and instrumental_ai_confidence appear only in the final done message.

Window object

Done object

WebSocket close codes

An error message is sent before the connection closes for the 1003, 4002, 4003, and 4029 cases.

Rate limits

  • Concurrent connection limits apply per organization
  • Monthly usage limits (in audio hours) apply per organization