guapaQAQ commited on
Commit
b6a0ef2
Β·
1 Parent(s): f0aefc1

Update advanced instructions

Browse files
Files changed (2) hide show
  1. README.md +43 -41
  2. advanced/test.parquet +3 -0
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- # Data-files config (no script, Parquet-only)
3
  configs:
4
  - config_name: basic
5
  data_files:
@@ -13,7 +13,14 @@ configs:
13
  - "basic/test.parquet"
14
  default: true
15
 
16
- pretty_name: "Gametime (Basic)"
 
 
 
 
 
 
 
17
  tags:
18
  - audio
19
  - speech
@@ -23,6 +30,7 @@ tags:
23
  task_categories:
24
  - automatic-speech-recognition
25
  - text-to-speech
 
26
  language:
27
  - en
28
  license: cc-by-4.0
@@ -30,27 +38,30 @@ size_categories:
30
  - n<100K
31
  ---
32
 
33
- # Gametime β€” Basic (Parquet)
34
 
35
- The **Basic** split of Gametime is a lightweight, streaming-friendly dataset for quick TTS/ASR prototyping.
36
- Audio is stored directly as raw bytes in Parquet (no `Audio` feature), so you can stream and decode without extra dependencies.
37
 
38
  ---
39
 
40
  ## πŸ“¦ Download Options
41
 
42
  ### 1️⃣ Recommended β€” Stream from Hugging Face
 
43
  ```python
44
  from datasets import load_dataset
45
  import io, soundfile as sf
46
 
47
- ds = load_dataset("gametime-benchmark/gametime", "basic", split="train", streaming=True)
 
 
 
48
 
49
- ex = next(iter(ds))
50
- buf = io.BytesIO(ex["audio_bytes"])
51
- wav, sr = sf.read(buf, dtype="float32")
52
- print(ex["id"], sr, len(wav), ex["text"])
53
- ````
54
 
55
  * Works with **`streaming=True`** β€” no full download needed
56
  * Requires only `soundfile` (libsndfile)
@@ -63,45 +74,37 @@ If you prefer the original folder layout:
63
 
64
  ```
65
  gametime/basic/
66
- β”œβ”€β”€ 1-a-Sequence-Number-dataset.json
67
  β”œβ”€β”€ ...*-dataset.json
68
  β”œβ”€β”€ audios/
69
- β”‚ β”œβ”€β”€ 1-a-Sequence-Number/
70
- β”‚ β”‚ β”œβ”€β”€ train/*.wav
71
- β”‚ β”‚ β”œβ”€β”€ test/*.wav
72
- ...
73
- ```
74
 
75
- You can download and unzip:
 
 
 
 
76
 
77
  ```python
78
- # pip install -U huggingface_hub
79
- import os
80
  from huggingface_hub import hf_hub_download
81
- try:
82
- import dotenv
83
- dotenv.load_dotenv() # Load .env if available
84
- except:
85
- print("dotenv not installed, skipping .env loading")
86
 
87
  token = os.getenv("HF_TOKEN") or "<YOUR_HF_TOKEN>"
88
-
89
  path = hf_hub_download(
90
  repo_id="gametime-benchmark/gametime",
91
  repo_type="dataset",
92
- filename="download/gametime_basic_v1.zip",
93
- revision="main",
94
  token=token,
95
- local_dir=".", # download to current directory (change as needed)
96
  )
97
  print("saved to:", path)
98
  ```
99
 
100
  ```bash
101
- unzip download/gametime_basic_v1.zip
102
  ```
103
 
104
- This preserves the `gametime/basic` directory tree exactly as in source.
105
 
106
  ---
107
 
@@ -112,7 +115,7 @@ Each Parquet row has:
112
  | Column | Type | Description |
113
  | --------------- | ----- | -------------------------------------------------------------- |
114
  | `id` | str | e.g. `1-a-Sequence-Number/train/1-a-Sequence-Number-01-01.wav` |
115
- | `category` | str | `"basic"` |
116
  | `dataset` | str | group name (e.g. `1-a-Sequence-Number`) |
117
  | `split` | str | `train` or `test` |
118
  | `template_idx` | str | template index if available |
@@ -137,7 +140,8 @@ from transformers import pipeline
137
  asr = pipeline("automatic-speech-recognition", model="openai/whisper-small")
138
  wer = evaluate.load("wer")
139
 
140
- ds = load_dataset("gametime-benchmark/gametime", "basic", split="test", streaming=True)
 
141
 
142
  refs, hyps = [], []
143
  for i, ex in enumerate(ds):
@@ -145,7 +149,7 @@ for i, ex in enumerate(ds):
145
  hyp = asr({"array": wav, "sampling_rate": sr})["text"]
146
  refs.append(ex["text"]); hyps.append(hyp)
147
  print(f"Sample {i+1}: {ex['text']} -> {hyp}")
148
- if i >= 199: # quick 200-sample check
149
  break
150
 
151
  print("WER:", wer.compute(references=refs, predictions=hyps))
@@ -155,7 +159,8 @@ print("WER:", wer.compute(references=refs, predictions=hyps))
155
 
156
  ## πŸ“ Notes
157
 
158
- * **Advanced** split (with `<sil="Xms"/>` timing tokens) is planned separately.
 
159
  * License: **CC BY 4.0** for text, metadata, and audio.
160
  * ZIP download is optional; Parquet streaming is the default recommended method.
161
 
@@ -164,10 +169,7 @@ print("WER:", wer.compute(references=refs, predictions=hyps))
164
  ## πŸ“š Citation
165
 
166
  ```
167
- @dataset{gametime_basic_2025,
168
- title = {Gametime: Basic Speech Benchmark},
169
- year = {2025},
170
- url = {https://huggingface.co/datasets/gametime-benchmark/gametime},
171
- note = {Parquet-only split "basic" for TTS/ASR sanity checks}
172
- }
173
  ```
 
 
 
1
  ---
2
+ # Data-files config (Parquet-only)
3
  configs:
4
  - config_name: basic
5
  data_files:
 
13
  - "basic/test.parquet"
14
  default: true
15
 
16
+ - config_name: advanced
17
+ data_files:
18
+ - split: test
19
+ path:
20
+ - "advanced/test-*.parquet"
21
+ - "advanced/test.parquet"
22
+
23
+ pretty_name: "Gametime"
24
  tags:
25
  - audio
26
  - speech
 
30
  task_categories:
31
  - automatic-speech-recognition
32
  - text-to-speech
33
+ - language-modeling
34
  language:
35
  - en
36
  license: cc-by-4.0
 
38
  - n<100K
39
  ---
40
 
41
+ # Gametime Benchmark
42
 
43
+ The **Gametime** dataset provides lightweight, streaming-friendly splits for TTS/ASR/SpokenLM prototyping.
 
44
 
45
  ---
46
 
47
  ## πŸ“¦ Download Options
48
 
49
  ### 1️⃣ Recommended β€” Stream from Hugging Face
50
+
51
  ```python
52
  from datasets import load_dataset
53
  import io, soundfile as sf
54
 
55
+ # Load Basic train split
56
+ ds_basic = load_dataset("gametime-benchmark/gametime", "basic", split="train", streaming=True)
57
+ ex = next(iter(ds_basic))
58
+ print(ex["id"], ex["text"])
59
 
60
+ # Load Advanced test split
61
+ ds_adv = load_dataset("gametime-benchmark/gametime", "advanced", split="test", streaming=True)
62
+ ex_adv = next(iter(ds_adv))
63
+ print(ex_adv["id"], ex_adv["text"])
64
+ ```
65
 
66
  * Works with **`streaming=True`** β€” no full download needed
67
  * Requires only `soundfile` (libsndfile)
 
74
 
75
  ```
76
  gametime/basic/
 
77
  β”œβ”€β”€ ...*-dataset.json
78
  β”œβ”€β”€ audios/
79
+ β”‚ β”œβ”€β”€ .../*.wav
 
 
 
 
80
 
81
+ gametime/advanced/
82
+ β”œβ”€β”€ ...*-dataset.json
83
+ β”œβ”€β”€ audios/
84
+ β”‚ β”œβ”€β”€ test/*.wav
85
+ ```
86
 
87
  ```python
 
 
88
  from huggingface_hub import hf_hub_download
89
+ import os
 
 
 
 
90
 
91
  token = os.getenv("HF_TOKEN") or "<YOUR_HF_TOKEN>"
 
92
  path = hf_hub_download(
93
  repo_id="gametime-benchmark/gametime",
94
  repo_type="dataset",
95
+ filename="download/gametime_advanced_v1.zip",
96
+ revision="main",
97
  token=token,
98
+ local_dir=".",
99
  )
100
  print("saved to:", path)
101
  ```
102
 
103
  ```bash
104
+ unzip download/gametime_advanced_v1.zip
105
  ```
106
 
107
+ This preserves the `gametime/advanced` directory tree exactly as in source.
108
 
109
  ---
110
 
 
115
  | Column | Type | Description |
116
  | --------------- | ----- | -------------------------------------------------------------- |
117
  | `id` | str | e.g. `1-a-Sequence-Number/train/1-a-Sequence-Number-01-01.wav` |
118
+ | `category` | str | `"basic"` or `"advanced"` |
119
  | `dataset` | str | group name (e.g. `1-a-Sequence-Number`) |
120
  | `split` | str | `train` or `test` |
121
  | `template_idx` | str | template index if available |
 
140
  asr = pipeline("automatic-speech-recognition", model="openai/whisper-small")
141
  wer = evaluate.load("wer")
142
 
143
+ # Evaluate Advanced split (test only)
144
+ ds = load_dataset("gametime-benchmark/gametime", "advanced", split="test", streaming=True)
145
 
146
  refs, hyps = [], []
147
  for i, ex in enumerate(ds):
 
149
  hyp = asr({"array": wav, "sampling_rate": sr})["text"]
150
  refs.append(ex["text"]); hyps.append(hyp)
151
  print(f"Sample {i+1}: {ex['text']} -> {hyp}")
152
+ if i >= 199:
153
  break
154
 
155
  print("WER:", wer.compute(references=refs, predictions=hyps))
 
159
 
160
  ## πŸ“ Notes
161
 
162
+ * **Basic**: clean split with plain text transcripts.
163
+ * **Advanced**: adds inline timing tokens such as `<sil="Xms"/>`, enabling alignment-aware training and evaluation.
164
  * License: **CC BY 4.0** for text, metadata, and audio.
165
  * ZIP download is optional; Parquet streaming is the default recommended method.
166
 
 
169
  ## πŸ“š Citation
170
 
171
  ```
172
+ (TO BE UPDATED)
 
 
 
 
 
173
  ```
174
+
175
+ ---
advanced/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b190b4ead73d9c1924bce91b409f7c6d2938d82a5320574dd85151691452e2d
3
+ size 481376638