---
title: Audio Classification
type: templates
category: Audio/Speech Processing
cat: audio-speech-processing
order: 330
meta_title: Audio Classification Data Labeling Template

If you want to perform audio classification tasks, such as intent or sentiment classification, you can use this template to listen to an audio file and classify the topic of the clip.
<View>
<Header value="Listen to the audio:"></Header>
<Audio name="audio" value="$url"></Audio>
<Header value="Select its topic:"></Header>
<Choices name="label" toName="audio" choice="single-radio" showInline="true">
<Choice value="Politics"></Choice>
<Choice value="Business"></Choice>
<Choice value="Education"></Choice>
<Choice value="Other"></Choice>
</Choices>
</View>
All labeling configurations must be wrapped in View tags.
You can add a header to provide instructions to the annotator:xml <Header value="Listen to the audio:"></Header>
Use the Audio object tag to specify the type and the location of the audio clip. In this case, the audio clip is stored with a url key in the data:xml <Audio name="audio" value="$url"></Audio>
Use the Choices control tag to manage how the classification choices appear to annotators with showInline="true" and what selection option is used on the interface with choice="single-radio". The toName="audio" option associates the choices with the audio clip.xml <Choices name="label" toName="audio" choice="single-radio" showInline="true">
You must use the Choices tag in combination with the Choice to specify the available choices to classify the audio, then close the Choices tag:xml <Choice value="Politics"></Choice> <Choice value="Business"></Choice> <Choice value="Education"></Choice> <Choice value="Other"></Choice> </Choices>
This template can be enhanced in many ways.
If you want to make the classification section visually distinct from the rest of the labeling interface, you can add styling to the View tag. Wrap the Choices and Header in their own View tag:xml <View style="box-shadow: 2px 2px 5px #999; padding: 20px; margin-top: 2em; border-radius: 5px;"> <Header value="Select the topic of the audio clip"/> <Choices name="label" toName="audio" choice="single-radio" showInline="true"> <Choice value="Politics"></Choice> <Choice value="Business"></Choice> <Choice value="Education"></Choice> <Choice value="Other"></Choice> </Choices> </View>
{% insertmd includes/nested-classification.md %}