--- title: Audio Classification type: templates category: Audio/Speech Processing cat: audio-speech-processing order: 330 meta_title: Audio Classification Data Labeling Template meta_description: Template for classifying audio and intent using Label Studio for your data science and machine learning projects. --- 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. ## Interactive Template Preview
## Labeling Configuration ```html
``` ## About the labeling configuration All labeling configurations must be wrapped in [View](/tags/view.html) tags. You can add a [header](/tags/header.html) to provide instructions to the annotator: ```xml
``` Use the [Audio](/tags/audio.html) 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 ``` Use the [Choices](/tags/choices.html) 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 ``` You must use the Choices tag in combination with the [Choice](/tags/choice.html) to specify the available choices to classify the audio, then close the Choices tag: ```xml ``` ## Enhance this template This template can be enhanced in many ways. ### Change the appearance of choices If you want to make the classification section visually distinct from the rest of the labeling interface, you can add styling to the [View](/tags/view.html) tag. Wrap the [Choices](/tags/choices.html) and [Header](/tags/header.html) in their own View tag: ```xml
``` {% insertmd includes/nested-classification.md %} ## Related tags - [Audio](/tags/audio.html) - [Choices](/tags/choices.html) ## Related templates - [Intent Classification](intent_classification.html) - [Audio Classification with Segments](audio_regions.html)