Instructions ยท Text to Speech

  1. Open the HTML file in a modern browser. Review Security Check and select Continue.
  2. Open TextToSpeech.html in the browser. Paste English text, open a UTF-8 .txt file, or choose Open Sample.
  3. Choose Heart or Michael and adjust Speech Rate. Select Generate Speech. The embedded model opens on the first generation.
  4. Play the WAV preview, seek, replay or choose Download WAV. Stop Generation cancels the current run and leaves the last completed WAV available.

The embedded Kokoro-82M v1.0 ONNX q8 model includes Heart and Michael for US English. Output is 24 kHz mono PCM WAV.