# gtzan_music_speech

<br />

- **Description**:

The dataset was collected for the purposes of music/speech discrimination. The
dataset consists of 120 tracks, each 30 seconds long. Each class (music/speech)
has 60 examples. The tracks are all 22050Hz Mono 16-bit audio files in .wav
format.

- **Additional Documentation** :
  [Explore on Papers With Code](https://paperswithcode.com/dataset/gtzan-music-speech)

- **Homepage** :
  <http://marsyas.info/index.html>

- **Source code** :
  [`tfds.audio.gtzan_music_speech.GTZANMusicSpeech`](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/audio/gtzan_music_speech/gtzan_music_speech.py)

- **Versions**:

  - **`1.0.0`** (default): No release notes.
- **Download size** : `283.29 MiB`

- **Dataset size** : `424.64 MiB`

- **Auto-cached**
  ([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):
  No

- **Splits**:

| Split | Examples |
|---|---|
| `'train'` | 128 |

- **Feature structure**:

    FeaturesDict({
        'audio': Audio(shape=(None,), dtype=int64),
        'audio/filename': Text(shape=(), dtype=string),
        'label': ClassLabel(shape=(), dtype=int64, num_classes=2),
    })

- **Feature documentation**:

| Feature | Class | Shape | Dtype | Description |
|---|---|---|---|---|
|   | FeaturesDict |   |   |   |
| audio | Audio | (None,) | int64 |   |
| audio/filename | Text |   | string |   |
| label | ClassLabel |   | int64 |   |

- **Supervised keys** (See
  [`as_supervised` doc](https://www.tensorflow.org/datasets/api_docs/python/tfds/load#args)):
  `('audio', 'label')`

- **Figure**
  ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):
  Not supported.

- **Examples**
  ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):

<button id="displaydataframe">Display examples...</button>

- **Citation**:

    @ONLINE {Music Speech,
        author = "Tzanetakis, George",
        title  = "GTZAN Music/Speech Collection",
        year   = "1999",
        url    = "http://marsyas.info/index.html"
    }