This is a simple POC to test the Text To Speech functionality in Python.
-
simple
-speecht5_tts
Model, by Microsoft, using the dataset ofMatthijs/cmu-arctic-xvectors
pip install -r requirements.txt -U
Add the following Env variables to your .env
file:
HUGGINGFACEHUB_API_TOKEN=<YOUR_TOKEN>
source .venv/bin/activate
py src/simple.py
Load Python Environment via the command pallette, and then use the debug option to run the main.py
file.
Make sure you've configured your PIP SSL settings properly. You can do this by running the following command:
pip config set global.trusted-host \
"pypi.org files.pythonhosted.org pypi.python.org" \
--trusted-host=pypi.python.org \
--trusted-host=pypi.org \
--trusted-host=files.pythonhosted.org