-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Further rework of the Android module #10
Comments
I like the idea of unified approach, thank you! |
vosk-android-0.3.45.zip |
@sergsavchuk done |
Thank you 🤗 |
I think a good approach would be to use the record Flutter package to get that audio stream. It's supported across all major platforms. Then this package only would need to implement the individual platform's Vosk-related code, leaving the microphone streaming handling to be done by the |
In my opinion, we should separate the recognition process and the audio recording process.
Motivation
There are already a bunch of Flutter plugins for recording from a microphone(https://pub.dev/packages?q=microphone) and it would be strange to reinvent/reimplement them in the vosk-flutter plugin. Additionally, it would be great to unite the logic for all platforms instead of having the MethodChannel implementation for Android and the FFI implementation for other platforms.
Plan
The plan is to remove the dependency to
vosk-android
in the Android module and replace the MethodChannel with FFI.Details:
SpeechService
from thevosk-android
in Dart and it should just recieve a stream of data instead of the microphone recording@nshmyrev what do you think about this?
The text was updated successfully, but these errors were encountered: