Commit
·
adce8c1
1
Parent(s):
58a2348
Update librispeech_asr_dummy.py
Browse files- librispeech_asr_dummy.py +2 -2
librispeech_asr_dummy.py
CHANGED
@@ -97,7 +97,7 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
|
|
97 |
features=datasets.Features(
|
98 |
{
|
99 |
"file": datasets.Value("string"),
|
100 |
-
|
101 |
"text": datasets.Value("string"),
|
102 |
"speaker_id": datasets.Value("int64"),
|
103 |
"chapter_id": datasets.Value("int64"),
|
@@ -131,7 +131,7 @@ class LibrispeechASR(datasets.GeneratorBasedBuilder):
|
|
131 |
"speaker_id": speaker_id,
|
132 |
"chapter_id": chapter_id,
|
133 |
"file": os.path.join(path, audio_file),
|
134 |
-
|
135 |
"text": transcript,
|
136 |
}
|
137 |
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
|