Set up the Kokoro Text-to-Speech demo application
mainTo run the React + Vite demo application which runs the Kokoro model 100% locally in the browser using kokoro-js and @huggingface/transformers, follow these steps in order:
- Clone the repository
- Build the core dependencies in the
kokoro.jsdirectory. - Install demo dependencies in the
demodirectory. - Start the development server.
The application will be available at http://localhost:5173.
# 1. Clone the Repository
git clone https://github.com/hexgrad/kokoro.git
# 2. Build the Dependencies
cd kokoro/kokoro.js
npm i
npm run build
# 3. Setup the Demo Project
cd ../demo
npm i
# 4. Start the Development Server
npm run dev