Kokoro TTS
Kokoro TTS is an offline TTS engine based on the Kokoro-82M 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.
Install via UV (Recommended)
UV is a fast Python package manager that handles all dependencies automatically in an isolated environment.
Step 1 - Install UV
Open PowerShell and run the following command:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"For alternative installation methods, refer to the UV Installation Guide.
Step 2 - Verify the Installation
After the installation is complete, restart PowerShell and verify that UV is installed correctly by running:
uv --versionYou should see the installed UV version printed in the terminal.
Step 3 - Clone or Download the Repository
Clone via Git (recommended)
If you have Git installed, open PowerShell and run:
git clone https://github.com/remsky/Kokoro-FastAPI.git
cd Kokoro-FastAPIDownload as ZIP
If you do not have Git installed, you can download the repository manually:
Click the Code button, then select Download ZIP
Extract the downloaded ZIP file to a folder of your choice
Open PowerShell, navigate to the extracted folder:
cd path\to\Kokoro-FastAPIStep 4 - Run Kokoro TTS
Start the Kokoro TTS server using the provided startup script for CPU:
.\start-cpu.ps1UV will automatically install all required dependencies on the first run.
Install via PIP
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-FastAPIDownload as ZIP
If you do not have Git installed, you can download the repository manually:
Click the Code button, then select Download ZIP
Extract the downloaded ZIP file to a folder of your choice
Open PowerShell, navigate to the extracted folder:
cd path\to\Kokoro-FastAPIStep 2 - Install Dependencies
Install the required Python packages using PIP:
pip install -r requirements.txtStep 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 8880Running the Kokoro TTS Server
Once the server is running, you can access the web interface at:
http://localhost:8880/webThe API documentation is also available at:
http://localhost:8880/docsIntegrating 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://localhostPort:
8880
Make sure the Kokoro TTS server is running before launching a game in VNTranslator. If the server is not running, TTS playback will not work.