alphacep / vosk-flutter

Apache License 2.0
51 stars 40 forks source link

Windows support? #6

Closed moham96 closed 1 year ago

moham96 commented 1 year ago

Any plans for windows support?

nshmyrev commented 1 year ago

It would be nice to have. Vosk works on Windows, we just need to test the wrapper. If only we could have time for that.

Feel free to ask if you can try something, we can assist.

sergsavchuk commented 1 year ago

I'm currently working on Linux support. Everything is working well at the moment, I just need some time to prepare the package and PR. After adding Linux support, it will only take a few lines of code to add Windows support.

sergsavchuk commented 1 year ago

@moham96 after the publishing of #11 you could use recognition on Windows, but unfortunately I didn't find any working flutter plugin that would allow you to get a stream of bytes from a microphone on Windows, that's why you can only recognize prerecorded audio data until such a plugin appears or you could try to write such a plugin on your own P. S. let me know if you have troubles using the plugin on Windows :slightly_smiling_face:

moham96 commented 1 year ago

@sergsavchuk There is https://pub.dev/packages/mic_stream can't we use that package?

moham96 commented 1 year ago

Ohh I see it doesn't support windows

sergsavchuk commented 1 year ago

Ohh I see it doesn't support windows

Yep. You can try to create a workaround using https://pub.dev/packages/record But this workaround will not be easy to implement.

moham96 commented 1 year ago

@sergsavchuk just revisiting this issue, the 5.0.0-beta.2 version of the record package now supports streaming input of the microphone (I haven't tested it yet)

The plugin should output 16 bit pcm data as a a stream but I don't see anyway in vosk-flutter to accept data as a stream and do live recognizing

Am I missing something?