figisiwirf commited on
Commit Β·
dcbc961
1
Parent(s): 08de1af
Restruct dataset format, and update README
Browse files- README.md +18 -24
- advanced/test.parquet +2 -2
- basic/test.parquet +2 -2
README.md
CHANGED
|
@@ -108,46 +108,40 @@ unzip gametime/download/basic_instructions.zip
|
|
| 108 |
|
| 109 |
```python
|
| 110 |
from datasets import load_dataset
|
| 111 |
-
import io
|
| 112 |
-
import soundfile as sf
|
| 113 |
|
| 114 |
-
# Load Basic
|
| 115 |
ds_basic = load_dataset("gametime-benchmark/gametime", "basic", split="test", streaming=True)
|
| 116 |
ex = next(iter(ds_basic))
|
| 117 |
-
|
| 118 |
-
|
| 119 |
print(ex["id"], sr, len(wav), ex["text"])
|
| 120 |
|
| 121 |
# Load Advanced test split
|
| 122 |
ds_adv = load_dataset("gametime-benchmark/gametime", "advanced", split="test", streaming=True)
|
| 123 |
ex_adv = next(iter(ds_adv))
|
| 124 |
-
|
| 125 |
-
|
| 126 |
print(ex_adv["id"], sr_adv, len(wav_adv), ex_adv["text"])
|
| 127 |
-
```
|
| 128 |
|
| 129 |
* Works with **`streaming=True`** β no full download needed
|
| 130 |
-
*
|
| 131 |
|
| 132 |
---
|
| 133 |
|
| 134 |
## π Schema
|
| 135 |
|
| 136 |
-
Each
|
| 137 |
-
|
| 138 |
-
| Column
|
| 139 |
-
| ------------
|
| 140 |
-
| `id`
|
| 141 |
-
| `
|
| 142 |
-
| `
|
| 143 |
-
|
|
| 144 |
-
| `
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
| `alignment` | str | alignment metadata |
|
| 148 |
-
| `audio_bytes` | bytes | raw WAV file bytes |
|
| 149 |
-
| `audio_format` | str | `"wav"` |
|
| 150 |
-
| `sampling_rate` | int | e.g., `16000` |
|
| 151 |
|
| 152 |
---
|
| 153 |
|
|
|
|
| 108 |
|
| 109 |
```python
|
| 110 |
from datasets import load_dataset
|
|
|
|
|
|
|
| 111 |
|
| 112 |
+
# Load Basic test split
|
| 113 |
ds_basic = load_dataset("gametime-benchmark/gametime", "basic", split="test", streaming=True)
|
| 114 |
ex = next(iter(ds_basic))
|
| 115 |
+
wav = ex["audio"]["array"] # numpy float array
|
| 116 |
+
sr = ex["audio"]["sampling_rate"] # int, e.g. 24000
|
| 117 |
print(ex["id"], sr, len(wav), ex["text"])
|
| 118 |
|
| 119 |
# Load Advanced test split
|
| 120 |
ds_adv = load_dataset("gametime-benchmark/gametime", "advanced", split="test", streaming=True)
|
| 121 |
ex_adv = next(iter(ds_adv))
|
| 122 |
+
wav_adv = ex_adv["audio"]["array"]
|
| 123 |
+
sr_adv = ex_adv["audio"]["sampling_rate"]
|
| 124 |
print(ex_adv["id"], sr_adv, len(wav_adv), ex_adv["text"])
|
| 125 |
+
```
|
| 126 |
|
| 127 |
* Works with **`streaming=True`** β no full download needed
|
| 128 |
+
* Audio is auto-decoded via the `datasets` `Audio` feature (requires `soundfile` / libsndfile under the hood)
|
| 129 |
|
| 130 |
---
|
| 131 |
|
| 132 |
## π Schema
|
| 133 |
|
| 134 |
+
Each row has the following columns (in order):
|
| 135 |
+
|
| 136 |
+
| # | Column | Type | Description |
|
| 137 |
+
| - | ----------- | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| 138 |
+
| 1 | `id` | `string` | e.g. `1-a-Sequence-Number/test/1-a-Sequence-Number-11-01.wav` |
|
| 139 |
+
| 2 | `audio` | `Audio` (24 kHz) | Auto-decoded audio. Access as `ex["audio"]["array"]` (numpy float array) and `ex["audio"]["sampling_rate"]` (int). The Hugging Face dataset viewer renders this as an inline π player. |
|
| 140 |
+
| 3 | `text` | `string` | Reference transcription / prompt. |
|
| 141 |
+
| 4 | `alignment` | `str` | alignment metadata |
|
| 142 |
+
| 5 | `dataset` | `string` | Group name (e.g. `1-a-Sequence-Number`). |
|
| 143 |
+
|
| 144 |
+
Splits: each config (`basic`, `advanced`) provides a single `test` split.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
---
|
| 147 |
|
advanced/test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0b9089797c63a3d089e1e14dabe9339fbe020075799ff175a39c3c31971a1b5
|
| 3 |
+
size 473252585
|
basic/test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58e20e9cb46866a9aa7191d2be6156a6cda790a0630cebe8aa5c160cc49cd19b
|
| 3 |
+
size 254681688
|