FileNotFoundError: [Errno 2] No such file or directory: 'xvector_speaker_embedding.npy'

#5
by Girmay - opened

Hello all, I am getting this error and I have no idea where is this file located. Anyone? Thanks.

Yes, I could not find this file everywhere.

the author mentioned it in a blogpost
" The embeddings were obtained from the CMU ARCTIC dataset using this script, but any X-Vector embedding should work. "
the CMU ARCTIC dataset is not publicly available at the moment,
but the script is still available (at https://huggingface.co/mechanicalsea/speecht5-vc/blob/main/manifest/utils/prep_cmu_arctic_spkemb.py)
there are some changes to be made, but overall it works.

This worked for me:
I believe you can also use other xvectors dataset

from datasets import load_dataset
embeddings_dataset = load_dataset("Matthijs/cmu-arctic-xvectors", split="validation")

import torch
speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze(0)

Sign up or log in to comment