Skip to main content
Audio Event Detection identifies non-speech sounds in a recording: instruments, human vocalizations such as laughter and coughing, and environmental noises such as a knock or a gunshot. Every supported event receives a probability on every call, so the response shape does not change with the contents of the audio. The endpoint produces no transcript, diarization, or PII/PHI tagging.

Audio Event Detection (batch)

Returns application/json.
Worth knowing: cry and the other 41 events are not on the same scale. cry is an independent probability, while the other 41 keys are drawn from one shared distribution that sums to 1 across them. Comparing cry against Laughter compares two different quantities.
Because the 41 shared keys sum to 1, they rank the most prominent event rather than reporting independent detections. A clip containing both applause and laughter splits probability between Applause and Laughter, so neither reaches the value it would reach alone. Read those keys by taking the highest rather than by thresholding each one. cry is independent, so a threshold on cry is meaningful. Key names are case-sensitive and inconsistent in form: cry is the only lowercase key, Hi-hat is the only key containing a hyphen, and the rest are capitalized with underscores.

Try it

What you can configure

There are no other parameters. The set of scored events is fixed, and the response always carries all 42 keys.

Audio formats

Accepted extensions: .aac, .aiff, .flac, .mov, .mp3, .mp4, .ogg, .opus, .wav, .webm. Maximum file size is 100 MB. Empty files are rejected with 400, as are files whose audio cannot be decoded.

Supported events

cry is scored independently. These 41 are drawn from one shared distribution: Acoustic_guitar, Applause, Bark, Bass_drum, Burping_or_eructation, Bus, Cello, Chime, Clarinet, Computer_keyboard, Cough, Cowbell, Double_bass, Drawer_open_or_close, Electric_piano, Fart, Finger_snapping, Fireworks, Flute, Glockenspiel, Gong, Gunshot_or_gunfire, Harmonica, Hi-hat, Keys_jangling, Knock, Laughter, Meow, Microwave_oven, Oboe, Saxophone, Scissors, Shatter, Snare_drum, Squeak, Tambourine, Tearing, Telephone, Trumpet, Violin_or_fiddle, Writing.

API reference