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

python3.6 initialize.py -3 SF1 TF1 16000, FileNotFoundError: [Errno 2] No such file or directory: 'data/wav/.wav' #126

Open
vayusutha opened this issue Dec 7, 2018 · 3 comments

Comments

@vayusutha
Copy link

vayusutha commented Dec 7, 2018

I was able to run example upto initialize configure files for the source and target speakers and the speaker-pair.
But when i try to trace f0, i,e python initialize.py -3 SF1 TF1 16000, im getting trace back error as follows:

Traceback (most recent call last):
File "initialize.py", line 180, in
str(WAV_DIR), str(CONF_DIR / "figure"))
File "/media/vayu/01D38AA42152F1F0/sprocket/sprocket-master/example/src/initialize_speaker.py", line 87, in main
fs, x = wavfile.read(wavf)
File "/home/vayu/.local/lib/python3.6/site-packages/scipy/io/wavfile.py", line 233, in read
fid = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'data/wav/.wav'

Is it suppose to create a .wav file in the path : example/data/wav ???
Please help me to debug it...

@vayusutha
Copy link
Author

i have debugged the issue,..
While deleting list files for source and target , there was a extra space added and python was reading that extra space as .wav ... hence it was searching for a file called .wav which actually physically not available in the list folder...

@astridreadygo
Copy link

Sorry but I met with the same problem. I was wondering if you could explain how you debug to fix this? I have tried to reach out the "initialize_speaker.py" and tried to use "f = f.strip()" in line 85 instead of "f = f.rstrip()", but it was still not working.

@astridreadygo
Copy link

Thanks but I have checked that out on my own. When using nano to edit the SF1_test.list file, there is an extra blank line after the last "SF1/100030". Simply withdraw the Enter key from the next line to "SF1/100030" in SF1_test.list file. I found this since the code is not processing after it extracts the SF1/100030.wav which happened to be the end of SF1 folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants