https://github.com/avivbens/text-to-speech-poc
https://github.com/avivbens/text-to-speech-poc
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/avivbens/text-to-speech-poc
- Owner: Avivbens
- Created: 2024-06-26T23:14:25.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-06-28T21:29:23.000Z (11 months ago)
- Last Synced: 2025-02-17T04:30:41.363Z (3 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Text To Speech POC
This is a simple POC to test the Text To Speech functionality in Python.
## Models
- [`simple`](./src/simple.py) - [`speecht5_tts`](https://huggingface.co/microsoft/speecht5_tts) Model, by Microsoft, using the dataset of [`Matthijs/cmu-arctic-xvectors`](https://huggingface.co/datasets/Matthijs/cmu-arctic-xvectors)
- [`rich`](./src/tts_rich.py) - [`parler_tts_mini_v0.1`](https://huggingface.co/parler-tts/parler_tts_mini_v0.1)
## Installation
```bash
pip install -r requirements.txt -U
```Add the following Env variables to your `.env` file:
```bash
HUGGINGFACEHUB_API_TOKEN=
```## Usage
### Terminal
```bash
source .venv/bin/activate
py src/simple.py
```### IDE
Load Python Environment via the command pallette, and then use the debug option to run the `main.py` file.
## Troubleshooting
### SSL issues
Make sure you've configured your PIP SSL settings properly. You can do this by running the following command:
```bash
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
```