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

How to implement in other script #994

Closed
codesie03 opened this issue Jan 27, 2022 · 0 comments
Closed

How to implement in other script #994

codesie03 opened this issue Jan 27, 2022 · 0 comments

Comments

@codesie03
Copy link

I want to somehow use an external script to send texts for it to say. But the following code doesn't work. I have also commented out the show() in the ui.py script as to not show the UI. This is my code (this is in a modified demo_toolbox.py script, just the last part, the rest is the same):
print("Init #1") tb = Toolbox(**arg_dict) print("Init #2") tb.load_from_browser(tb, Path("E:/VoiceCloner/voices/Charlie.flac)) print("Init #3") tb.synthesize(tb, "Hello. This is a text, and my name is Charlie.")

But when I run it it prints:
`Arguments:
datasets_root: None
models_dir: saved_models
cpu: False
seed: None

Init #1
Warning: you did not pass a root directory for datasets as argument.
The recognized datasets are:
LibriSpeech/dev-clean
LibriSpeech/dev-other
etc. etc.
VCTK-Corpus/wav48
Feel free to add your own. You can still use the toolbox by recording samples yourself.
`
Then it jumps down one line, but Init#2 never shows up. Why? Sorry btw if this is the wrong place to ask this.

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