alphacep / alphacep/vosk-api

Flutter Plugin Prototype

Open
#262 9 comments 4 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
15.1k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Hello! I've been making some progress in implementing a [Flutter plugin for Vosk](https://github.com/ethan-ou/offline_speech_recognition). It currently only binds to the Android library, but it should be possible to bind to the iOS side as well.

There's also an [example Android apk](https://github.com/ethan-ou/offline_speech_recognition/releases/tag/v0.0.1) to try the plugin on your phone. The example app downloads the model from the alphacep servers then unzips it into the assets directory for usage. It's more complicated but it means every current language supported by Vosk can be used.

I've kept the API relatively low-level, but I'm no expert in Java or Flutter so some of the design might be off. On the Flutter side, the API is as so:

```dart
OfflineSpeechRecognition.load(String path);
OfflineSpeechRecognition.start();
OfflineSpeechRecognition.stop();
OfflineSpeechRecognition.destroy();
OfflineSpeechRecognition.onResult();
OfflineSpeechRecognition.onPartial();
```

If you think this is a good project to add to alphacep, I'm also open to transferring ownership if that's something you want to do.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.