get hasStates() {
        const states = self.states();

        return states && states.length > 0;
      }
The Audio tag plays audio and shows its waveform. Use for audio annotation tasks where you want to label regions of audio, see the waveform, and manipulate audio during annotation.

Use with the following data types: audio
@example
<!-- Play audio on the labeling interface -->
<View>
  <Audio name="audio" value="$audio" />
</View>
@example
<!-- Play audio with multichannel support -->
<View>
  <Audio name="audio" value="$audio" splitchannels="true" />
</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>
@example
<!-- Labeling configuration to label regions of audio and rate the audio sample-->
<View>
  <Labels name="lbl-1" toName="audio-1">
    <Label value="Guitar" />
    <Label value="Drums" />
  </Labels>
  <Rating name="rate-1" toName="audio-1" />
  <Audio name="audio-1" value="$audio" />
</View>
@example
<!-- Sync with video -->
<View>
  <Video name="video-1" value="$video" sync="audio-1" />
  <Labels name="lbl-1" toName="audio-1">
    <Label value="Guitar" />
    <Label value="Drums" />
  </Labels>
  <Audio name="audio-1" value="$video" sync="video-1" />
</View>
@example
<!-- Sync with paragraphs -->
<View>
  <Labels name="lbl-1" toName="audio-1">
    <Label value="Guitar" />
    <Label value="Drums" />
  </Labels>
  <Audio name="audio-1" value="$audio" sync="txt-1" />
  <Paragraphs audioUrl="$audio" sync="audio-1" name="txt-1" value="$text" layout="dialogue" showplayer="true" />
</View>
@regions AudioRegion
@meta_title Audio Tag for Audio Labeling
@meta_description Customize Label Studio with the Audio tag for advanced audio annotation tasks for machine learning and data science projects.
@name Audio
@param {string} name - Name of the element
@param {string} value - Data field containing path or a URL to the audio.
@param {string} [defaultspeed=1] - Default speed level (from 0.5 to 2).
@param {string} [defaultscale=1] - Audio pane default y-scale for waveform.
@param {string} [defaultzoom=1] - Default zoom level for waveform. (from 1 to 1500).
@param {string} [defaultvolume=1] - Default volume level (from 0 to 1).
@param {string} [hotkey] - Hotkey used to play or pause audio.
@param {string} [sync] Object name to sync with.
@param {string} [height=96] - Total height of the audio player.
@param {string} [waveheight=32] - Minimum height of a waveform when in `splitchannels` mode with multiple channels to display.
@param {boolean} [splitchannels=false] - Display multiple audio channels separately, if the audio file has more than one channel. (**NOTE: Requires more memory to operate.**)
@param {string} [decoder=webaudio] - Decoder type to use to decode audio data. (`"webaudio"` or `"ffmpeg"`)
@param {string} [player=html5] - Player type to use to play audio data. (`"html5"` or `"webaudio"`)