Datasets:
LIUM
/

sanchit-gandhi HF staff commited on
Commit
0d357a7
1 Parent(s): 5809bed

Change audio dict keys from "bytes" to "samples" (#1)

Browse files

- Change audio dict keys from "bytes" to "samples" (13b883b25bb8705f5290710efe0eae87a0ed031d)

Files changed (1) hide show
  1. tedlium.py +1 -1
tedlium.py CHANGED
@@ -222,7 +222,7 @@ class TedLium(datasets.GeneratorBasedBuilder):
222
 
223
  key = "-".join([speaker, start, end, label])
224
  example = {
225
- "audio": {"path": file, "bytes": samples},
226
  "text": transcript,
227
  "speaker_id": speaker,
228
  "gender": _parse_gender(label),
 
222
 
223
  key = "-".join([speaker, start, end, label])
224
  example = {
225
+ "audio": {"path": file, "array": samples, "sampling_rate": 16000},
226
  "text": transcript,
227
  "speaker_id": speaker,
228
  "gender": _parse_gender(label),