-
Notifications
You must be signed in to change notification settings - Fork 113
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
feat: local tts support #18
base: main
Are you sure you want to change the base?
Conversation
use piper as default.
Wow. Neat work. Will test and work on merge after this weekend. Thanks for the contribution. |
I'm experiencing some issues with installing Piper on Mac, and I'm still working on resolving them. |
@p0n1, I included another example in the README for https://github.com/coqui-ai/TTS, maybe you could try that instead. |
Hi @timgreen. I didn't expect that it could support both Coqui and Piper at the same time. That's really cool. I originally planned to test the use of Piper in a Linux environment, without considering the installation issues on Mac. However, my work has been busy lately, so I have to postpone it. In addition, there are new contributors joining recently. @Bryksin has done a great job and has comprehensively refactored the code to facilitate the future integration of more TTS engines. You can find some discussions here: #21 (comment). I apologize again for not being able to merge your code in a timely manner. Perhaps it would be better if you could contribute based on the refactored code once it got merged. Or I can help if you don't have the time. Beside, we have a discord server now for syncing up and any discussion. Feel free to join. You could find the invite url here #15 (comment). |
@timgreen I've attempted to build your branch to see if I could get the piper TTS working as I find it far better than Edge_TTS, however when running the command to use --tts local I get the following error
Apologizes if this isn't the correct place to reach out with a question on this. |
@EnderSyth, this PR hasn't been merged yet. So you will need to try from my branch: https://github.com/timgreen/epub_to_audiobook/tree/local_tts |
That is the one I cloned
It executes via 'epub_to_audiobook.py' which I believe is unique to your branch. After following the normal build process I used the code example on that Repo `python3 epub_to_audiobook.py "path/to/book.epub" "path/to/output/folder" --tts local' But modified to the following for my environment.
|
Timgreen, thanks for your work on this. |
EnderSyth , make sure to checkout the local_tts branch after cloning the repo |
Why thank you, I'm new to this so I missed that bit. After doing that indeed I can run it, though now its giving me issues with piper not being a recognized command. I'm trying to figure out how to get that installed but appear to not be able to get pip install piper-tts working due to missing piper-phonemize which also can't be found. But at least I'm one step further thank you. |
no problem at all, happy to help. |
I'm doing this under WSL on Ubuntu 20.04.6 LTS. I get Python 3.10.11 as the output running python -V. I saw many posts when looking into the errors about different versions of python causing issues but 3.10 was supposed to be good from what I read. |
Well I bite the bullet deleted the venv and decided to redo it with python 3.11, but thanks to WSL I couldn't install Python 3.11...long story short Bing GPT was able to guide me through compiling my own Python 3.11 and somehow it works! Now I just have to figure out how to change to libritts_r properly. I think I need the --voice_name tag so going to play with that next. |
So I didn't see this and just opened a pull request specifically for piper. See #77 On the one hand it's less generic on the other hand it "maps" parameters like silence and speed directly into piper parameters. Any suggestions welcome. |
This PR is out of date and seems like implemented before major refactoring and project restructurisation. |
I think this local_tts feature is quite flexible. I might adapt it to the latest code when I'm available. |
use piper as default.
issue #16