Closed FuriFull closed 4 days ago
pip install pyaudio. better to run virtual env 3.11
pip install pydub --upgrade
What's weird is audioop
should be a built-in module for python
Now it's regex error
c:\Audiobooks>python app.py
starting...
Traceback (most recent call last):
File "c:\Audiobooks\app.py", line 94, in <module>
import nltk
File "c:\Audiobooks\nltk\__init__.py", line 138, in <module>
from nltk.text import *
File "c:\Audiobooks\nltk\text.py", line 30, in <module>
from nltk.tokenize import sent_tokenize
File "c:\Audiobooks\nltk\tokenize\__init__.py", line 66, in <module>
from nltk.tokenize.casual import TweetTokenizer, casual_tokenize
File "c:\Audiobooks\nltk\tokenize\casual.py", line 49, in <module>
import regex # https://github.com/nltk/nltk/issues/2409
File "c:\Audiobooks\regex\__init__.py", line 1, in <module>
from .regex import *
File "c:\Audiobooks\regex\regex.py", line 417, in <module>
import regex._regex_core as _regex_core
File "c:\Audiobooks\regex\_regex_core.py", line 21, in <module>
import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
You can also use Docker to run the eBook to Audiobook converter. This method ensures consistency across different environments and simplifies setup.
To run the Docker container and start the Gradio interface, use the following command:
-Run with CPU only
docker run -it --rm -p 7860:7860 --platform=linux/amd64 athomasson2/ebook2audiobookxtts:huggingface python app.py
-Run with GPU Speedup (Nvida graphics cards only)
docker run -it --rm --gpus all -p 7860:7860 --platform=linux/amd64 athomasson2/ebook2audiobookxtts:huggingface python app.py
This command will start the Gradio interface on port 7860.(localhost:7860)
Yeah, thx, docker is fine, works well.
Hello, tried to run app.py and got this error:
Tried python from 3.11 to 3.9 - results are the same