---
title: Sound Event Detection
type: templates
category: Audio/Speech Processing
cat: audio-speech-processing
order: 318
meta_title: Sound Event Detection Data Labeling Template

For cases when you need to improve sound event detection, use this template to play an audio clip and label specific audio regions according to which event sound is audible from.
<View>
<Labels name="label" toName="audio" zoom="true" hotkey="ctrl+enter">
<Label value="Event A" background="red"/>
<Label value="Event B" background="green"/>
</Labels>
<Audio name="audio" value="$audio"/>
</View>
All labeling configurations must be wrapped in View tags.
Use the Labels control tag to highlight spans of audio with the relevant event label:xml <Labels name="label" toName="audio" zoom="true" hotkey="ctrl+enter"> <Label value="Event A" background="red"/> <Label value="Event B" background="green"/> </Labels>
Use the Audio object tag to display audio with a waveform, segment the audio clip, and provide annotators the option to change the speed of the audio playback.xml <Audio name="audio" value="$audio" />