Commit ·
f183ce2
1
Parent(s): d38eafb
Update librispeech_asr_dummy.py
Browse files- librispeech_asr_dummy.py +2 -0
librispeech_asr_dummy.py
CHANGED
|
@@ -97,6 +97,7 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
|
|
| 97 |
features=datasets.Features(
|
| 98 |
{
|
| 99 |
"file": datasets.Value("string"),
|
|
|
|
| 100 |
"text": datasets.Value("string"),
|
| 101 |
"speaker_id": datasets.Value("int64"),
|
| 102 |
"chapter_id": datasets.Value("int64"),
|
|
@@ -130,6 +131,7 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
|
|
| 130 |
"speaker_id": speaker_id,
|
| 131 |
"chapter_id": chapter_id,
|
| 132 |
"file": os.path.join(path, audio_file),
|
|
|
|
| 133 |
"text": transcript,
|
| 134 |
}
|
| 135 |
yield key, example
|
|
|
|
| 97 |
features=datasets.Features(
|
| 98 |
{
|
| 99 |
"file": datasets.Value("string"),
|
| 100 |
+
"audio": datasets.features.Audio(sampling_rate=16_000),
|
| 101 |
"text": datasets.Value("string"),
|
| 102 |
"speaker_id": datasets.Value("int64"),
|
| 103 |
"chapter_id": datasets.Value("int64"),
|
|
|
|
| 131 |
"speaker_id": speaker_id,
|
| 132 |
"chapter_id": chapter_id,
|
| 133 |
"file": os.path.join(path, audio_file),
|
| 134 |
+
"audio": os.path.join(path, audio_file),
|
| 135 |
"text": transcript,
|
| 136 |
}
|
| 137 |
yield key, example
|