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

I keep getting TypeError: Invalid file: WindowsPath #235

Closed
Delo001 opened this issue Nov 28, 2019 · 6 comments
Closed

I keep getting TypeError: Invalid file: WindowsPath #235

Delo001 opened this issue Nov 28, 2019 · 6 comments

Comments

@Delo001
Copy link

Delo001 commented Nov 28, 2019

Hi guys I keep getting this error when running python demo_toolbox.py
Exception: Invalid file: WindowsPath('D:/ai/LibriSpeech/train-clean-360/6157/40556/6157-40556-0111.flac')

Also I get this error using eg. python synthesizer_preprocess_audio.py
TypeError: Invalid file: WindowsPath('D:/ai/LibriSpeech/train-clean-100/103/1240/103-1240-0000.flac')

Any help with this would be fantastic it may be something simple I have only just started with python a few days ago.

I am running Windows 10 and using Anaconda and have downloaded all the files required. I just cant seem to load any voices in the toolbox through Voxceleb, librispeech or custom audio files in any format but i can record my own voice in toolbox. Thanks guys hopefully someone can help me out.

Cheers
Glenn

@SpiderKnot
Copy link

Hi! Have you solved this issue? I'm facing the exact the same problem.

@Kayzh3r
Copy link

Kayzh3r commented May 8, 2020

any news about this issue?

@SamuelDietz
Copy link

Bump. This issue is affecting me aswell!

@Kayzh3r
Copy link

Kayzh3r commented May 10, 2020

This bug is easy to debug. I was testing the algorithm so I hard-coded the url of the input files with the raw string modifier in python. E.g., r"PATH2MYFILE"

@SamuelDietz
Copy link

Actually I just fixed it for myself.

I changed line 119 in toolbox/init.py to:
wav = Synthesizer.load_preprocess_wav(str(fpath))
now it works without any problems.

@ghost
Copy link

ghost commented Jul 5, 2020

It's nice to see you all found a workaround. We formally resolved this problem in #371 . Closing this issue.

@ghost ghost closed this as completed Jul 5, 2020
This issue was closed.
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

4 participants