Datasets:
Tasks:
Automatic Speech Recognition
Modalities:
Audio
Languages:
Polish
Size:
10K<n<100K
DOI:
License:
mj-new
commited on
Commit
•
eb258ba
1
Parent(s):
4d73d6d
Updated build script - local path with extracted audio
Browse files- pl-asr-bigos-v2.py +3 -1
pl-asr-bigos-v2.py
CHANGED
@@ -106,6 +106,7 @@ class Bigos(datasets.GeneratorBasedBuilder):
|
|
106 |
"samplingrate_orig": datasets.Value("int32"),
|
107 |
"sampling_rate": datasets.Value("int32"),
|
108 |
"audiopath_bigos": datasets.Value("string"),
|
|
|
109 |
#"ref_spoken": datasets.Value("string"),
|
110 |
#"ref_written": datasets.Value("string"),
|
111 |
#"hyp_whisper_cloud": datasets.Value("string"),
|
@@ -237,7 +238,8 @@ class Bigos(datasets.GeneratorBasedBuilder):
|
|
237 |
if local_extracted_path is not None
|
238 |
else None
|
239 |
)
|
240 |
-
#
|
|
|
241 |
result["audio"] = {"path": audio_path, "bytes": audio_file.read()}
|
242 |
yield key, result
|
243 |
key += 1
|
|
|
106 |
"samplingrate_orig": datasets.Value("int32"),
|
107 |
"sampling_rate": datasets.Value("int32"),
|
108 |
"audiopath_bigos": datasets.Value("string"),
|
109 |
+
"audiopath_local": datasets.Value("string"),
|
110 |
#"ref_spoken": datasets.Value("string"),
|
111 |
#"ref_written": datasets.Value("string"),
|
112 |
#"hyp_whisper_cloud": datasets.Value("string"),
|
|
|
238 |
if local_extracted_path is not None
|
239 |
else None
|
240 |
)
|
241 |
+
#print("extracted_audio_path: ", extracted_audio_path)
|
242 |
+
result["audiopath_local"] = extracted_audio_path
|
243 |
result["audio"] = {"path": audio_path, "bytes": audio_file.read()}
|
244 |
yield key, result
|
245 |
key += 1
|