Update libriheavy.py
Browse files- libriheavy.py +2 -3
libriheavy.py
CHANGED
@@ -171,11 +171,10 @@ 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"].shape)
|
175 |
result = {
|
176 |
"id": chunk["speaker_id"] + "_" + utterance_id,
|
177 |
"speaker_id": chunk["speaker_id"],
|
178 |
-
"speaker_vec": npz_item["d_vector"],
|
179 |
"audio": chunk["audio"],
|
180 |
"text": chunk["text"],
|
181 |
"word_segments": [
|
@@ -207,7 +206,7 @@ class Libriheavy(datasets.GeneratorBasedBuilder):
|
|
207 |
result = {
|
208 |
"id": chunk["speaker_id"] + "_" + utterance_id,
|
209 |
"speaker_id": chunk["speaker_id"],
|
210 |
-
"speaker_vec": npz_item["d_vector"],
|
211 |
"audio": chunk["audio"],
|
212 |
"text": chunk["text"],
|
213 |
"word_segments": [
|
|
|
171 |
if utterance_id == sorted(list(text.keys()))[-1]:
|
172 |
continue
|
173 |
npz_item = npz[str(utterance_id)].item()
|
|
|
174 |
result = {
|
175 |
"id": chunk["speaker_id"] + "_" + utterance_id,
|
176 |
"speaker_id": chunk["speaker_id"],
|
177 |
+
"speaker_vec": npz_item["d_vector"][0],
|
178 |
"audio": chunk["audio"],
|
179 |
"text": chunk["text"],
|
180 |
"word_segments": [
|
|
|
206 |
result = {
|
207 |
"id": chunk["speaker_id"] + "_" + utterance_id,
|
208 |
"speaker_id": chunk["speaker_id"],
|
209 |
+
"speaker_vec": npz_item["d_vector"][0],
|
210 |
"audio": chunk["audio"],
|
211 |
"text": chunk["text"],
|
212 |
"word_segments": [
|