init
Browse files- attach_speaker_embedding_s2s.py +1 -0
- download_s2t_metadata.py +0 -8
- fetch_dataset_s2s.py +0 -1
- main_s2s.sh +6 -15
attach_speaker_embedding_s2s.py
CHANGED
@@ -59,6 +59,7 @@ print(f"Num examples (after filtering): {len(dataset)}")
|
|
59 |
|
60 |
def speaker_embedding(example):
|
61 |
for side in sides:
|
|
|
62 |
embedding = speaker_embedder.get_speaker_embedding(
|
63 |
example[f"{side}.audio"]["array"], example[f"{side}.audio"]["sampling_rate"]
|
64 |
)
|
|
|
59 |
|
60 |
def speaker_embedding(example):
|
61 |
for side in sides:
|
62 |
+
print(example[f"{side}.audio"]["array"].shape)
|
63 |
embedding = speaker_embedder.get_speaker_embedding(
|
64 |
example[f"{side}.audio"]["array"], example[f"{side}.audio"]["sampling_rate"]
|
65 |
)
|
download_s2t_metadata.py
CHANGED
@@ -1,13 +1,5 @@
|
|
1 |
-
import json
|
2 |
import os
|
3 |
-
import tarfile
|
4 |
-
import zipfile
|
5 |
-
import gzip
|
6 |
import subprocess
|
7 |
-
from os.path import join as p_join
|
8 |
-
from tqdm import tqdm
|
9 |
-
from multiprocessing import Pool
|
10 |
-
from typing import Optional
|
11 |
|
12 |
import pandas as pd
|
13 |
|
|
|
|
|
1 |
import os
|
|
|
|
|
|
|
2 |
import subprocess
|
|
|
|
|
|
|
|
|
3 |
|
4 |
import pandas as pd
|
5 |
|
fetch_dataset_s2s.py
CHANGED
@@ -10,7 +10,6 @@ from tqdm import tqdm
|
|
10 |
from multiprocessing import Pool
|
11 |
from typing import Optional, Dict
|
12 |
from glob import glob
|
13 |
-
# import librosa
|
14 |
|
15 |
import pandas as pd
|
16 |
import soundfile as sf
|
|
|
10 |
from multiprocessing import Pool
|
11 |
from typing import Optional, Dict
|
12 |
from glob import glob
|
|
|
13 |
|
14 |
import pandas as pd
|
15 |
import soundfile as sf
|
main_s2s.sh
CHANGED
@@ -404,24 +404,15 @@ do
|
|
404 |
python attach_speaker_embedding_s2s.py
|
405 |
done
|
406 |
|
407 |
-
|
408 |
export SE_MODEL="hubert-xl" # running
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
export DIRECTION="enA-zhA"
|
413 |
-
python attach_speaker_embedding_s2s.py
|
414 |
-
done
|
415 |
-
|
416 |
|
417 |
export SE_MODEL="w2vbert-600m" # running
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
export DIRECTION="enA-zhA"
|
422 |
-
python attach_speaker_embedding_s2s.py
|
423 |
-
done
|
424 |
-
|
425 |
|
426 |
|
427 |
|
|
|
404 |
python attach_speaker_embedding_s2s.py
|
405 |
done
|
406 |
|
|
|
407 |
export SE_MODEL="hubert-xl" # running
|
408 |
+
export DATASET_ID=167
|
409 |
+
export DIRECTION="enA-zhA"
|
410 |
+
python attach_speaker_embedding_s2s.py
|
|
|
|
|
|
|
|
|
411 |
|
412 |
export SE_MODEL="w2vbert-600m" # running
|
413 |
+
export DATASET_ID=165
|
414 |
+
export DIRECTION="enA-zhA"
|
415 |
+
python attach_speaker_embedding_s2s.py
|
|
|
|
|
|
|
|
|
416 |
|
417 |
|
418 |
|