shangeth commited on
Commit
202d1e0
·
verified ·
1 Parent(s): 7f839ad

Update dataset card

Browse files
Files changed (1) hide show
  1. README.md +115 -49
README.md CHANGED
@@ -1,51 +1,117 @@
1
  ---
2
- dataset_info:
3
- config_name: spanish
4
- features:
5
- - name: id
6
- dtype: string
7
- - name: text
8
- dtype: string
9
- - name: speaker_id
10
- dtype: int32
11
- - name: chapter_id
12
- dtype: int32
13
- - name: codes
14
- list:
15
- list: int16
16
- - name: n_frames
17
- dtype: int32
18
- - name: k_codebooks
19
- dtype: int32
20
- splits:
21
- - name: train
22
- num_bytes: 724046022
23
- num_examples: 220701
24
- - name: dev
25
- num_bytes: 7868779
26
- num_examples: 2408
27
- - name: test
28
- num_bytes: 7885411
29
- num_examples: 2385
30
- - name: 9_hours
31
- num_bytes: 7072272
32
- num_examples: 2110
33
- - name: 1_hours
34
- num_bytes: 777414
35
- num_examples: 233
36
- download_size: 500804152
37
- dataset_size: 747649898
38
- configs:
39
- - config_name: spanish
40
- data_files:
41
- - split: train
42
- path: spanish/train-*
43
- - split: dev
44
- path: spanish/dev-*
45
- - split: test
46
- path: spanish/test-*
47
- - split: 9_hours
48
- path: spanish/9_hours-*
49
- - split: 1_hours
50
- path: spanish/1_hours-*
51
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - nl
5
+ - fr
6
+ - de
7
+ - it
8
+ - pl
9
+ - pt
10
+ - es
11
+ task_categories:
12
+ - text-to-speech
13
+ - automatic-speech-recognition
14
+ tags:
15
+ - mimi
16
+ - neural-codec
17
+ - multilingual
18
+ - mls
19
+ - multilingual-librispeech
20
+ - audio-tokens
21
+ pretty_name: Multilingual LibriSpeech Mimi Codes
22
+ size_categories:
23
+ - 1M<n<10M
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  ---
25
+
26
+ # Multilingual LibriSpeech (MLS) — Mimi Codes
27
+
28
+ Pre-extracted [Kyutai Mimi](https://huggingface.co/kyutai/mimi) neural-codec tokens
29
+ for [Multilingual LibriSpeech](https://huggingface.co/datasets/facebook/multilingual_librispeech) —
30
+ LibriVox audiobooks in 7 non-English languages.
31
+
32
+ English is intentionally excluded — use
33
+ [shangeth/librispeech-mimi-codes](https://huggingface.co/datasets/shangeth/librispeech-mimi-codes)
34
+ for that.
35
+
36
+ ## Configs (languages)
37
+
38
+ One HF dataset config per language:
39
+
40
+ | Config | Language | ISO | Approx hours (train) |
41
+ |---|---|---|---|
42
+ | `dutch` | Dutch | nl | ~1.5k |
43
+ | `french` | French | fr | ~1.1k |
44
+ | `german` | German | de | ~3.3k |
45
+ | `italian` | Italian | it | ~250 |
46
+ | `polish` | Polish | pl | ~100 |
47
+ | `portuguese` | Portuguese | pt | ~160 |
48
+ | `spanish` | Spanish | es | ~920 |
49
+
50
+ ## Splits (per config)
51
+
52
+ | Split | Description |
53
+ |---|---|
54
+ | `train` | full training set |
55
+ | `dev` | development |
56
+ | `test` | test |
57
+ | `9_hours` | low-resource ~9h training subset |
58
+ | `1_hours` | low-resource ~1h training subset |
59
+
60
+ ## Schema
61
+
62
+ | Column | Type | Notes |
63
+ |---|---|---|
64
+ | `id` | string | utterance ID, format `{speaker}_{chapter}_{segment}` |
65
+ | `text` | string | transcript, mixed-case as-is from MLS |
66
+ | `speaker_id` | int32 | speaker ID (parsed from MLS string) |
67
+ | `chapter_id` | int32 | chapter ID |
68
+ | `codes` | `int16[k=8][n_frames]` | Mimi codebook indices @ 12.5 fps |
69
+ | `n_frames` | int32 | |
70
+ | `k_codebooks` | int32 | 8 |
71
+
72
+ ## Extraction details
73
+
74
+ - **Codec:** [`kyutai/mimi`](https://huggingface.co/kyutai/mimi) @ 24 kHz, 12.5 fps
75
+ - **Resampling:** MLS audio is 48 kHz opus → resampled to 24 kHz at extraction
76
+ - **Codebooks:** all 8 extracted; slice `codes[:k]` for fewer
77
+ - **Source:** [`facebook/multilingual_librispeech`](https://huggingface.co/datasets/facebook/multilingual_librispeech)
78
+
79
+ ## Usage
80
+
81
+ ```python
82
+ from datasets import load_dataset
83
+ import torch
84
+
85
+ ds = load_dataset("shangeth/mls-mimi-codes", "german", split="dev")
86
+ ex = ds[0]
87
+ codes = torch.tensor(ex["codes"], dtype=torch.long) # [8, n_frames]
88
+ print(ex["id"], "| speaker:", ex["speaker_id"], "|", ex["text"][:60])
89
+
90
+ # Decode back to 24 kHz audio
91
+ from transformers import MimiModel
92
+ mimi = MimiModel.from_pretrained("kyutai/mimi").cuda().eval()
93
+ with torch.no_grad():
94
+ wav = mimi.decode(codes.unsqueeze(0).cuda()).audio_values[0].cpu()
95
+ ```
96
+
97
+ ## Citation
98
+
99
+ ```bibtex
100
+ @misc{wren2026,
101
+ title = {Wren: A Family of Small Open-Weight Models for Unified Speech-Text Modelling},
102
+ author = {Shangeth Rajaa},
103
+ year = {2026},
104
+ url = {https://github.com/shangeth/wren}
105
+ }
106
+
107
+ @inproceedings{pratap2020mls,
108
+ title = {MLS: A Large-Scale Multilingual Dataset for Speech Research},
109
+ author = {Pratap, Vineel and Xu, Qiantong and Sriram, Anuroop and Synnaeve, Gabriel and Collobert, Ronan},
110
+ booktitle = {Interspeech},
111
+ year = {2020}
112
+ }
113
+ ```
114
+
115
+ ## License
116
+
117
+ CC-BY-4.0 (inherited from MLS / LibriVox).