cdminix commited on
Commit
394572a
·
verified ·
1 Parent(s): c74cb6d

Update libriheavy.py

Browse files
Files changed (1) hide show
  1. libriheavy.py +17 -1
libriheavy.py CHANGED
@@ -171,7 +171,23 @@ class Libriheavy(datasets.GeneratorBasedBuilder):
171
  if utterance_id == sorted(list(text.keys()))[-1]:
172
  continue
173
  npz_item = npz[str(utterance_id)].item()
174
- print(npz_item["d_vector"][0].shape)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
  result = {
176
  "id": chunk["speaker_id"] + "_" + utterance_id,
177
  "speaker_id": chunk["speaker_id"],
 
171
  if utterance_id == sorted(list(text.keys()))[-1]:
172
  continue
173
  npz_item = npz[str(utterance_id)].item()
174
+ print(
175
+ npz_item["d_vector"][0].shape,
176
+ {
177
+ "attributes": {
178
+ "pitch": npz_item["pitch"][0],
179
+ "energy": npz_item["energy"][0],
180
+ "snr": npz_item["snr"][0],
181
+ "srmr": npz_item["srmr"][0],
182
+ },
183
+ "overall_attributes": {
184
+ "pitch": npz_item["overall_pitch"],
185
+ "energy": npz_item["overall_energy"],
186
+ "snr": npz_item["overall_snr"],
187
+ "srmr": npz_item["overall_srmr"],
188
+ },
189
+ }
190
+ )
191
  result = {
192
  "id": chunk["speaker_id"] + "_" + utterance_id,
193
  "speaker_id": chunk["speaker_id"],