Audio
The Audio tag plays a simple audio file. Use this tag for basic audio annotation tasks such as classification or transcription.
Use with the following data types: audio.
Parameters
| Param | Type | Default | Description | 
|---|---|---|---|
| name | string | Name of the element | |
| value | string | Data field containing path or a URL to the audio | |
| hotkey | string | Hotkey used to play or pause audio | |
| [cursorwidth] | string | 1 | Audio pane cursor width. It is measured in pixels. | 
| [cursorcolor] | string | "#333" | Audio pane cursor color. The color should be specified in hex decimal string | 
Sample Results JSON
| Name | Type | Description | 
|---|---|---|
| original_length | number | length of the original audio (seconds) | 
| value | Object | |
| value.start | number | start time of the fragment (seconds) | 
| value.end | number | end time of the fragment (seconds) | 
| value.channel | number | channel identifier which was targeted | 
Example JSON
{
  "original_length": 18,
  "value": {
    "start": 3.1,
    "end": 8.2,
    "channel": 0,
    "labels": ["Voice"]
  }
}Example
Play audio on the labeling interface
<View>
  <Audio name="audio" value="$audio" />
</View>Example
Audio classification
<View>
  <Audio name="audio" value="$audio" />
  <Choices name="ch" toName="audio">
    <Choice value="Positive" />
    <Choice value="Negative" />
  </Choices>
</View>Example
Audio transcription
<View>
  <Audio name="audio" value="$audio" />
  <TextArea name="ta" toName="audio" />
</View>