Type Alias: KokoroTtsModel<K>
KokoroTtsModel<
K> =object
Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:69
Model configuration required to instantiate the Kokoro Text-to-Speech pipeline.
Type Parameters
K
K extends PropertyKey
Voice keys record constraint (strictly inferred from voices keys).
Properties
modelPaths
readonlymodelPaths:object
Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:73
Local or remote file paths to the 2 Kokoro .pte sub-models.
durationPredictor
readonlydurationPredictor:string
Path to the duration predictor .pte model.
synthesizer
readonlysynthesizer:string
Path to the synthesizer .pte model.
name
readonlyname:"kokoro"
Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:71
Discriminates this config from the other Text-to-Speech pipelines.
phonemizer
readonlyphonemizer:PhonemizerConfig
Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:80
Grapheme-to-phoneme configuration matching the model's language.
voices
readonlyvoices:Record<K,string>
Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:82
Map of voice names to local or remote voice .bin file paths.