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
Examples
ts
kokoroVoice() // the copy `waygraph install` madets
kokoroVoice({ voice: "am_michael", speed: 0.95 })