An open API service indexing awesome lists of open source software.

https://github.com/avivbens/text-to-speech-poc


https://github.com/avivbens/text-to-speech-poc

Last synced: 3 months ago
JSON representation

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
```