KittenTTS
This page lists pre-trained models from https://github.com/KittenML/KittenTTS.
kitten-nano-en-v0_1-fp16
This model provides 8 voices in total: 4 male and 4 female.
Please see
https://github.com/k2-fsa/sherpa-onnx/pull/2460
for details. We have listed the voices of each speaker in the above pull request.
This model is converted from https://huggingface.co/KittenML/kitten-tts-nano-0.1
You can find the conversion script from https://github.com/k2-fsa/sherpa-onnx/tree/master/scripts/kitten-tts/nano_v0_1
Download the model
wget https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/kitten-nano-en-v0_1-fp16.tar.bz2
tar xf kitten-nano-en-v0_1-fp16.tar.bz2
rm kitten-nano-en-v0_1-fp16.tar.bz2
Huggingface space
You can try this model by visiting
First select English and then select kitten-nano-en-v0_1-fp16
from the available models.
You don’t need to install anything to try it.
Android TTS Engine APK
You can use it to replace your Android system text to speech engine so that it can be called from 3rd party ebook-reader APPs.
Please download the pre-built APK from
Search for kitten
in the above page to find KittenTTS
.
The source code is available at
1. C++ API example
Please see https://github.com/k2-fsa/sherpa-onnx/blob/master/cxx-api-examples/kitten-tts-en-cxx-api.cc
2. Python API example
Please see
3. C API example
Please see https://github.com/k2-fsa/sherpa-onnx/blob/master/c-api-examples/kitten-tts-en-c-api.c
4. Go API example
Please see
5. C# API example
Please see
6. Dart API example
Please see
7. Swift API example
Please see
8. Kotlin API example
Please see https://github.com/k2-fsa/sherpa-onnx/blob/master/kotlin-api-examples/test_tts.kt#L100
9. Java API example
Please see
10. JavaScript API example (nodejs + WebAssembly)
Please see https://github.com/k2-fsa/sherpa-onnx/blob/master/nodejs-examples/test-offline-tts-kitten-en.js
11. JavaScript API example (nodejs + node-addon)
12. Pascal API example
Please see
https://github.com/k2-fsa/sherpa-onnx/blob/master/pascal-api-examples/tts/kitten-en.pas
https://github.com/k2-fsa/sherpa-onnx/blob/master/pascal-api-examples/tts/kitten-en-playback.pas
https://github.com/k2-fsa/sherpa-onnx/blob/master/pascal-api-examples/tts/run-kitten-en.sh
https://github.com/k2-fsa/sherpa-onnx/blob/master/pascal-api-examples/tts/run-kitten-en-playback.sh