Skip to content

waygraph / kokoroVoice

Function: kokoroVoice() ​

kokoroVoice(given?): Voice

Defined in: src/runtime/voice.ts:201

A voice from Kokoro, a natural-sounding local model (82M parameters, CPU is enough): the model is loaded once, in one Python process kept for the recording, and each line is a request to it. waygraph install sets it up once per machine (about 350 MB); or point it at your own Python and model.

Parameters ​

given? ​

KokoroVoiceOptions = {}

Returns ​

Voice

Examples ​

ts
kokoroVoice()                         // the copy `waygraph install` made
ts
kokoroVoice({ voice: "am_michael", speed: 0.95 })

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed