Datasets:
Yougen/lid_dataset
Language Identification (LID) 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:
train: 36 tar shard(s)validation: 4 tar shard(s)test: 23 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":..., "wav_format":..., "duration":..., "label_str":..., "label":...}
metadata.csv columns:
key, shard, id, rel_path, wav_format, duration, label_str, label
Labels (17)
- music
- noise
- silence
- 其他语
- 哈语
- 失效链接
- 无人声
- 无法判断
- 汉语
- 混合语种
- 粤语
- 维语
- 英语
- 蒙语
- 藏语
- 难懂方言
- 韩语
Loading
from datasets import load_dataset
ds = load_dataset("Yougen/lid_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("Yougen/lid_dataset", streaming=True)
for example in ds["train"]:
print(example["__key__"], example["json"]["label_str"])
break
HuggingFace's webdataset builder will automatically pair <key>.wav with
<key>.json inside every tar and decode the audio.
- Downloads last month
- 38