alphacep / alphacep/vosk-api

Flutter Plugin Prototype

未关闭
#262 9 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Jupyter Notebook
星标
15.1k
派生
1.8k
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。