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

Switch tts #274

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ git clone https://github.com/aedocw/epub2tts
cd epub2tts
pyenv install 3.11
pyenv local 3.11
#OPTIONAL - install this in a virtual environment
#OPTIONAL but recommended - install this in a virtual environment
pip install coqui-tts --only-binary spacy
python -m venv .venv && source .venv/bin/activate
pip install .
```
Expand All @@ -162,6 +163,7 @@ sudo apt install nvidia-cuda-toolkit
#clone the repo
git clone https://github.com/aedocw/epub2tts
cd epub2tts
pip install coqui-tts --only-binary spacy
pip install .
```

Expand All @@ -183,7 +185,7 @@ Running epub2tts in WSL2 with Ubuntu 22 is the easiest approach, but these steps
7. Decide where you want your epub2tts project to live, documents is a common place. Once you've found a directory you're happy with, clone the project with `git clone https://github.com/aedocw/epub2tts` and cd epub2tts so you're now in your working directory.
8. There are probably a few different ways you can go here, I personally opted for a venv to keep everything organized. Create a venv with the command `python -m venv .venv`
9. Activate the venv, on windows the command is slightly different as you issue `.venv\scripts\activate`
10. Install epub2tts along with the requirements with the command `pip install .`
10. Install epub2tts along with the requirements with the commands `pip install coqui-tts --only-binary spacy && pip install .`

11. If all goes well, you should be able to call epub2tts from within your venv and update it from this directory going forward. To update, use `git pull` and then `pip install . --upgrade`

Expand All @@ -203,6 +205,8 @@ Running epub2tts in WSL2 with Ubuntu 22 is the easiest approach, but these steps
<details>
<summary>DOCKER</summary>

NOTE: Docker image has not been recently updated or tested, may be working but is out of date.

Voice models will be saved locally in `~/.local/share/tts`

Docker usage does not reliably utilize GPU, if someone wants to work on improving this your PR will be very welcome!
Expand Down Expand Up @@ -239,6 +243,7 @@ python -m venv .venv
source .venv/bin/activate
#install dependencies
sudo apt install espeak-ng ffmpeg
pip install coqui-tts --only-binary spacy
pip install -r requirements.txt
```
</details>
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ torch
torchaudio
tqdm
transformers==4.40.2
TTS
coqui-tts
unidecode
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
author_email="[email protected]",
url="https://github.com/aedocw/epub2tts",
license="Apache License, Version 2.0",
version="2.6.0",
version="2.6.1",
packages=find_packages(),
install_requires=requirements,
py_modules=["epub2tts"],
Expand Down