Kokoro TTS

circle-info

Kokoro TTS is an offline TTS engine based on the Kokoro-82Marrow-up-right model. It supports multiple languages including English, Japanese, and Chinese, and runs on CPU without requiring a GPU.

Installation

There are two ways to install Kokoro TTS: using UV (recommended) or PIP.

chevron-rightInstall via PIPhashtag

If you prefer to install Kokoro TTS manually using PIP, follow these steps.

Step 1 - Clone or Download the Repository

Clone via Git (recommended)

git clone https://github.com/remsky/Kokoro-FastAPI.git
cd Kokoro-FastAPI

Download as ZIP

If you do not have Git installed, you can download the repository manually:

  1. Click the Code button, then select Download ZIP

  2. Extract the downloaded ZIP file to a folder of your choice

  3. Open PowerShell, navigate to the extracted folder:

cd path\to\Kokoro-FastAPI

Step 2 - Install Dependencies

Install the required Python packages using PIP:

pip install -r requirements.txt

Step 3 - Run Kokoro TTS

Once the dependencies are installed, start the Kokoro TTS server:

python -m uvicorn api.src.main:app --host 0.0.0.0 --port 8880

Running the Kokoro TTS Server

Once the server is running, you can access the web interface at:

http://localhost:8880/web

The API documentation is also available at:

http://localhost:8880/docs

Integrating with VNTranslator

After the Kokoro TTS server is running, follow these steps to connect it with VNTranslator:

  • Go to Settings -> Extensions -> Text to Speech

  • Scroll to the Kokoro TTS settings section

  • Enter the Host and Port of your running Kokoro TTS server. By default, these are already set to:

    • Host: http://localhost

    • Port: 8880

circle-exclamation

References