Update libriheavy.py
Browse files- libriheavy.py +16 -16
libriheavy.py
CHANGED
|
@@ -186,16 +186,16 @@ class Libriheavy(datasets.GeneratorBasedBuilder):
|
|
| 186 |
],
|
| 187 |
"mel_spectrogram": npz_item["mel"][0][0],
|
| 188 |
"attributes": {
|
| 189 |
-
npz_item["pitch"][0],
|
| 190 |
-
npz_item["energy"][0],
|
| 191 |
-
npz_item["snr"][0],
|
| 192 |
-
npz_item["srmr"][0],
|
| 193 |
},
|
| 194 |
"overall_attributes": {
|
| 195 |
-
npz_item["overall_pitch"],
|
| 196 |
-
npz_item["overall_energy"],
|
| 197 |
-
npz_item["overall_snr"],
|
| 198 |
-
npz_item["overall_srmr"],
|
| 199 |
},
|
| 200 |
}
|
| 201 |
yield chunk["speaker_id"] + "_" + utterance_id, result
|
|
@@ -218,16 +218,16 @@ class Libriheavy(datasets.GeneratorBasedBuilder):
|
|
| 218 |
],
|
| 219 |
"mel_spectrogram": npz_item["mel"][0][0],
|
| 220 |
"attributes": {
|
| 221 |
-
npz_item["pitch"][0],
|
| 222 |
-
npz_item["energy"][0],
|
| 223 |
-
npz_item["snr"][0],
|
| 224 |
-
npz_item["srmr"][0],
|
| 225 |
},
|
| 226 |
"overall_attributes": {
|
| 227 |
-
npz_item["overall_pitch"],
|
| 228 |
-
npz_item["overall_energy"],
|
| 229 |
-
npz_item["overall_snr"],
|
| 230 |
-
npz_item["overall_srmr"],
|
| 231 |
},
|
| 232 |
}
|
| 233 |
yield chunk["speaker_id"] + "_" + utterance_id, result
|
|
|
|
| 186 |
],
|
| 187 |
"mel_spectrogram": npz_item["mel"][0][0],
|
| 188 |
"attributes": {
|
| 189 |
+
"pitch": npz_item["pitch"][0],
|
| 190 |
+
"energy": npz_item["energy"][0],
|
| 191 |
+
"snr": npz_item["snr"][0],
|
| 192 |
+
"srmr": npz_item["srmr"][0],
|
| 193 |
},
|
| 194 |
"overall_attributes": {
|
| 195 |
+
"pitch": npz_item["overall_pitch"],
|
| 196 |
+
"energy": npz_item["overall_energy"],
|
| 197 |
+
"snr": npz_item["overall_snr"],
|
| 198 |
+
"srmr": npz_item["overall_srmr"],
|
| 199 |
},
|
| 200 |
}
|
| 201 |
yield chunk["speaker_id"] + "_" + utterance_id, result
|
|
|
|
| 218 |
],
|
| 219 |
"mel_spectrogram": npz_item["mel"][0][0],
|
| 220 |
"attributes": {
|
| 221 |
+
"pitch": npz_item["pitch"][0],
|
| 222 |
+
"energy": npz_item["energy"][0],
|
| 223 |
+
"snr": npz_item["snr"][0],
|
| 224 |
+
"srmr": npz_item["srmr"][0],
|
| 225 |
},
|
| 226 |
"overall_attributes": {
|
| 227 |
+
"pitch": npz_item["overall_pitch"],
|
| 228 |
+
"energy": npz_item["overall_energy"],
|
| 229 |
+
"snr": npz_item["overall_snr"],
|
| 230 |
+
"srmr": npz_item["overall_srmr"],
|
| 231 |
},
|
| 232 |
}
|
| 233 |
yield chunk["speaker_id"] + "_" + utterance_id, result
|