Golang KittenTTS Integration
Author: exarothCreated Jun 1, 2026Updated Jun 1, 2026
Hello,
This is not an actual issue - just wanted to share some Golang libraries I wrote as part of https://github.com/exaroth/narrative app, in case anyone would want to embed KittenTTS into their Go project in the future. While the app is self contained the libraries can be used standalone in place of default Kitten TTS python lib. The libraries are:
- Kitten - https://github.com/exaroth/narrative/tree/main/pkg/kitten - used for tokenization/inference calls using ONNX library
- Preprocessor - https://github.com/exaroth/narrative/tree/main/pkg/preprocessor - These (mostly) replicate KittenTTS preprocessor functions, and are used for preparing text source for phonemization
- Phonemizer - Based on the Goruut library, used for dictionary operations as well as phoneme inference.
In any case, I'm always grateful for input so if you have any suggestions please let me know.
Cheers.
Source: KittenML/KittenTTS