Audio Classification with Segments

If you want to perform audio classification tasks on specific segments of audio clips, you can use this template to listen to an audio file and classify the topic of the clip.

Interactive Template Preview

Labeling Configuration

<View>
  <Header value="Select its topic:"></Header>
  <Labels name="label" toName="audio" choice="multiple">
    <Label value="Politics" background="yellow"></Label>
    <Label value="Business" background="red"></Label>
    <Label value="Education" background="blue"></Label>
    <Label value="Other"></Label>
  </Labels>
  <Header value="Listen to the audio:"></Header>
  <Audio name="audio" value="$url"></Audio>
</View>

About the labeling configuration

All labeling configurations must be wrapped in View tags.

You can add a header to provide instructions to the annotator:

<Header value="Select its topic:"></Header>

Use the Labels control tag to allow annotators to segment the audio and classify it at the same time.

<Labels name="label" toName="audio" choice="multiple">
    <Label value="Politics" background="yellow"></Label>
    <Label value="Business" background="red"></Label>
    <Label value="Education" background="blue"></Label>
    <Label value="Other"></Label>
</Labels>

The choice="multiple" argument allows one audio segment to be labeled with multiple topics.

Use the Audio object tag to specify the location of the audio file to classify:

<Audio name="audio" value="$url"></Audio>