linux_tts 0.1.0 copy "linux_tts: ^0.1.0" to clipboard
linux_tts: ^0.1.0 copied to clipboard

Offline, on-device text-to-speech for embedded Linux via spd-say (speech-dispatcher). Pure Dart, no Flutter dependency. Degrades silently when the speech backend is absent.

Changelog #

0.1.0 #

Initial release.

Extracted from SNGNav's voice_guidance package (https://github.com/aki1770-del/sngnav), where the LinuxTtsEngine drives in-vehicle voice guidance in production.

  • TtsEngine abstraction (isAvailable, setLanguage, setVolume, setSpeechRate, speak, stop, dispose).
  • LinuxTtsEngine: spd-say / speech-dispatcher backed, offline / on-device. Injectable process hooks for unit testing without a running daemon.
  • NoOpTtsEngine: silent fallback for tests, headless, and non-Linux targets.
  • Conditional export so the LinuxTtsEngine API is available on every platform (degrading to a silent NoOp where dart:io is unavailable).
  • TtsUnavailableException + LinuxTtsEngine.ensureAvailable() for callers that require speech and must fail loudly rather than degrade silently.

This extraction excludes the Flutter-coupled FlutterTtsEngine from the source package, keeping linux_tts dependency-free (no flutter, no flutter_tts, no ffi) so it is usable in pure-Dart embedded contexts.

0
likes
160
points
15
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Offline, on-device text-to-speech for embedded Linux via spd-say (speech-dispatcher). Pure Dart, no Flutter dependency. Degrades silently when the speech backend is absent.

Repository (GitHub)
View/report issues

Topics

#tts #speech #accessibility #linux #embedded

License

MIT (license)

More

Packages that depend on linux_tts