Skip to main content

On-device SDKs

KittenTTS SDKs run speech synthesis locally with ONNX. After model assets are available, text does not need to leave the device for generation.

SDKBest forCurrent packageStart
PythonScripts, services, notebooks, CPU or CUDA inferenceGitHub wheel 0.8.1Python SDK
React NativeiOS, Android, Expo development builds, React Native Webnpm @kittentts/react-native 1.2.0React Native SDK
SwiftNative iOS and macOS appsSwift Package 0.1.0Swift SDK
FlutterMobile, desktop, and Flutter Web from one Dart codebasepub.dev kittentts 0.1.1Flutter SDK
Web and Node.jsBrowser, Vite, React, Node services, custom storageSource previewWeb SDK
Developer preview

The SDKs are evolving. Pin a release or commit and test model downloads, offline startup, and audio playback in the exact environment you ship.

Pick by requirement

RequirementRecommended starting point
Python batch or server generationPython installation
Expo or bare React NativeReact Native setup
Native SwiftUI or AppKit/UIKitSwift installation
One Flutter codebase across mobile, desktop, and webFlutter installation
Browser-only, Vite, React, Electron, or NodeWeb and Node setup
No first-run network downloadSDK-specific offline-assets guide
Hosted inference with an API keyPublic API quickstart

Shared model layer

  • Nano, Nano int8, Micro, and Mini model choices.
  • Bella, Jasper, Luna, Bruno, Rosie, Hugo, Kiki, and Leo voices.
  • 24 kHz audio output.
  • Adjustable speech speed.
  • Local model download and caching.
  • Text normalization and CE-compatible phonemization.

The higher-level SDK surface intentionally differs by runtime. React Native, Swift, Flutter, and Web expose word timings and local streaming. Swift includes native playback. React Native and Flutter use adapters so an app can keep its existing audio stack. Web supports WAV and MP3 encoding plus pluggable asset storage. Python stays close to NumPy and SoundFile.

Hosted API or SDK?

Use the hosted API when your server should own inference and deployment. Use an SDK when offline operation, local privacy, or avoiding a network round trip matters more than the first-run model download and device integration work.

Source of truth

These guides are based on the current public APIs, examples, package manifests, and source in the KittenML GitHub organization. Pin a release or commit in production: every SDK is still marked as a developer preview and surfaces can change.