Open sergsavchuk opened 1 year ago
I like the idea of unified approach, thank you!
vosk-android-0.3.45.zip @nshmyrev could you please add this archive with Android binaries to the v0.3.45 Release?
@sergsavchuk done
@sergsavchuk done
Thank you :hugs:
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 record
package.
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?