amharic_stt 0.1.1
amharic_stt: ^0.1.1 copied to clipboard
On-device Amharic (am-ET) speech-to-text for Flutter. A thin, typed wrapper over platform speech recognizers with honest availability checks and no custom engine.
Changelog #
0.1.1 #
- Fixed
pubspec.yamlmetadata issues (description length and URLs) to resolve pub.dev scoring warnings.
0.1.0 #
Initial release.
AmharicSpeechRecognizer— a typed wrapper over the platform's native speech recognizer (AndroidSpeechRecognizer, iOSSFSpeechRecognizer), fixed to the Amharic (am-ET) locale. No custom engine and no bundled model.startListening()/stopListening()/cancel(), aStream<String>(transcripts) of partial + final results, and a structuredStream<SpeechResult>(results) withisFinaland optional confidence.isAvailable()that honestly reflects device support: on Android 13+ it queries the recognizer's actual supported-language list; it returnsfalse(never crashes/hangs) when Amharic is unavailable.- Typed
AmharicSttException/AmharicSttErrorKind— platform errors (permission denied, locale unavailable, recognizer busy, no match, timeout, network, audio, canceled, not available) are normalised on the native side and never leak as rawPlatformExceptions. - Example app with a mic button, live partial transcription, start/stop controls, and a visible message when Amharic isn't available on the device.
Test coverage & verification #
- The automated test suite mocks the method/event channels and verifies the
public API contract only: channel calls/arguments, stream decoding,
isAvailable()true/false logic, and typed-error propagation. - It does not cover real speech recognition. Actual Amharic transcription accuracy depends on the platform model and must be verified manually on a device.
- The native Android/iOS code is written against the documented platform APIs
but was not compiled or run on a real device/emulator for this release.
flutter analyzeandflutter test(package + example) are clean/green. - See the README "Platform & locale support" and "Verification status" sections for the current honest state of Amharic support (limited on Android, unsupported on iOS at time of writing).