gptsovits_dataset / README.md
bhyuan's picture
Add files using upload-large-folder tool
d29f20c verified
|
Raw
History Blame Contribute Delete
1.55 kB
metadata
license: other
task_categories:
  - text-to-speech
  - automatic-speech-recognition
pretty_name: GPT-SoVITS Dataset
configs:
  - config_name: default
    data_files:
      - split: youshengshu_v5_test
        path: data/youshengshu_v5_test/audio/*.tar
tags:
  - audio
  - speech
  - tts
  - webdataset

bhyuan/gptsovits_dataset

GPT-SoVITS speech dataset, packed as WebDataset tar shards.

Layout

data/
  train/
    metadata.csv
    audio/
      train-000.tar
      train-001.tar
      ...
  validation/
    metadata.csv
    audio/
      validation-000.tar
      ...
  test/
    metadata.csv
    audio/
      test-000.tar
      ...

Shard counts:

  • youshengshu_v5_test: 6536 tar shard(s)

Inside each tar, every sample is a pair sharing a unique key:

<key>.wav       # raw audio bytes
<key>.json      # {"id":..., "rel_path":..., "language":..., "duration":..., "text":...}

metadata.csv columns: key, shard, id, rel_path, language, duration, text

Loading

from datasets import load_dataset

ds = load_dataset("bhyuan/gptsovits_dataset")
print(ds)
print(ds["train"][0])
# sample keys: 'wav' (decoded audio), 'json' (metadata), '__key__', '__url__'

For streaming (no full download needed):

ds = load_dataset("bhyuan/gptsovits_dataset", streaming=True)
for example in ds["train"]:
    print(example["__key__"], example["json"]["text"])
    break

HuggingFace's webdataset builder will automatically pair <key>.wav with <key>.json inside every tar and decode the audio.