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

https://github.com/vpakarinen/kokoro-tts-webui

WebUI for kokoro tts.
https://github.com/vpakarinen/kokoro-tts-webui

ai gradio kokoro-tts ml onnx python3 text-to-speech tts

Last synced: 8 months ago
JSON representation

WebUI for kokoro tts.

Awesome Lists containing this project

README

          

# Kokoro TTS Web UI

A simple web user interface for Kokoro Text-to-Speech using Gradio.

![Kokoro TTS Web UI Preview](kokoro-tts-webui-preview.png)

## Installation

1. Clone this repository

```bash
git clone https://github.com/vpakarinen/kokoro-tts-webui.git

cd kokoro-tts-webui
```

2. Create and activate virtual environment:

```bash
python -m venv kokoro-env

# Windows
.\kokoro-env\Scripts\activate

# Linux/macOS
source kokoro-env/bin/activate
```

3. Install the required packages:

```bash
pip install -r requirements.txt
```

4. Run the application:

```bash
python app.py
```

## Troubleshooting

### Encoding Issues

If you encounter a `UnicodeDecodeError`, it's likely due to encoding issues with the kokoro-onnx library.

You can run the application with the UTF-8 flag:

```bash
python -X utf8 app.py
```

## Required Files

The application will automatically download the following files if they don't exist:
- kokoro-v1.0.onnx (model file)
- voices-v1.0.bin (voices data)

## Sponsor

If you find this project useful, consider supporting me:

[![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-vpakarinen-FFDD00?style=for-the-badge&logo=buymeacoffee)](https://www.buymeacoffee.com/vpakarinen)

[![Ko-fi](https://img.shields.io/badge/Ko--fi-vpakarinen-FF6433?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/vpakarinen)

## Credits

This project uses the [kokoro-onnx](https://github.com/thewh1teagle/kokoro-onnx) library for text-to-speech functionality.

## Author

vpakarinen (https://github.com/vpakarinen)