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

Path issue for get_conditioning_latents.py #83

Closed
planetrocke opened this issue May 31, 2022 · 4 comments
Closed

Path issue for get_conditioning_latents.py #83

planetrocke opened this issue May 31, 2022 · 4 comments

Comments

@planetrocke
Copy link

@neonbjb Thank you for the "tip" on pulling from the latest commit :) that worked for do_tts.py. The issue I am having now is I can't run:

python3 tortoise/get_conditioning_latents.py --voice /home/srocke/tortoise-tts/tortoise/voices/myself (tried with various paths here)

I am receiving the following:

Traceback (most recent call last):
File "tortoise/get_conditioning_latents.py", line 20, in
voices = get_voices()
File "/home/srocke/anaconda3/lib/python3.7/site-packages/TorToiSe-2.4.1-py3.7.egg/tortoise/utils/audio.py", line 92, in get_voices
subs = os.listdir(d)
FileNotFoundError: [Errno 2] No such file or directory: '/home/srocke/anaconda3/lib/python3.7/site-packages/TorToiSe-2.4.1-py3.7.egg/tortoise/utils/../voices'

@planetrocke
Copy link
Author

Update: I was able to get this to work by hard-coding BUILTIN_VOICES_DIR (in audio.py) to the "non-egg" version of tortoise. The voices are not packaged in the egg. I think the voices linkage should point to the install root somehow.

@neonbjb
Copy link
Owner

neonbjb commented May 31, 2022

This was another packaging issue that should be resolved if you pull again from the tip and re-install. 480f7e3 is the fix.

@neonbjb neonbjb closed this as completed May 31, 2022
@planetrocke
Copy link
Author

Thank you. I have a question about this, though. If the voices folder is included in the egg, where do we place custom voices we add ourselves? Is there a best practice for this somewhere I missed?

@neonbjb
Copy link
Owner

neonbjb commented May 31, 2022

Good point. Filed #85 to do this better. For now you'll just have to stick custom voices in the egg directory, manually hack the code, or revert back to 870b2d2.

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