Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dtype for Speechbrain #5112

Merged
merged 2 commits into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion egs2/TEMPLATE/asr1/pyscripts/utils/extract_xvectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def main(argv):
details = line.split()
spk2utt[details[0]] = details[1:]

wav_scp = SoundScpReader(os.path.join(args.in_folder, "wav.scp"))
wav_scp = SoundScpReader(os.path.join(args.in_folder, "wav.scp"), np.float32)
os.makedirs(args.out_folder, exist_ok=True)
writer_utt = kaldiio.WriteHelper(
"ark,scp:{0}/xvector.ark,{0}/xvector.scp".format(args.out_folder)
Expand Down
2 changes: 1 addition & 1 deletion tools/installers/install_speechbrain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ EOF
# Install speechbrain
if [ ! -e speechbrain.done ]; then
if "${torch_18_plus}"; then
python3 -m pip install speechbrain==0.5.11
python3 -m pip install speechbrain==0.5.14
touch speechbrain.done
else
echo "[ERROR]: speechbrain requires pytorch>=1.8.0"
Expand Down