ethan-ou / offline_speech_recognition

A WIP Flutter Plugin designed for continuous speech recognition with Vosk. Currently only for Android.
Other
24 stars 5 forks source link

IOS Implementation #1

Open Psycotype opened 3 years ago

Psycotype commented 3 years ago

Hello, I am new to ASR and speech recognition tools and I was wondering if development for this package is still ongoing. Also, is it possible for me to try to bind IOS myself using this package as a basis? If so, can you point me to a general idea as to how to do so? Thank you!

ethan-ou commented 3 years ago

Yes I was hoping to get back to updating this project some time in the future. The end goal is to merge it back to the Vosk repository where it can be maintained.

To start off, have a look at the Flutter docs for how to start building the iOS section. You'll of course need XCode to build and flutter to run and test the plugin. If you're new to Swift I recommend just making a new Swift Flutter plugin from the plugin scaffold to see how the project is set up.

From there I'd go and look at integrating the existing Vosk library for iOS which is already written. The only thing you'll need to do is connect the API of that library to Flutter's message bridge. This is how Flutter will communicate with the platform native code.

Two resources I'd go to is the plugins repo in the flutter org and the Vosk API demo project for iOS. The plugins repo will show you how to connect the native code to the message bridge and the demo project is where you'll get the details of the API for the Vosk plugin.

If you want me to dive deeper with you let me know.

Psycotype commented 3 years ago

Thanks for the information! I'm still quite new to Swift, so I'll work on getting a bit more comfortable with the language with your recommendation. After that, I'll definitely look further into the resources above, and let you know when I've made some progress!

ethan-ou commented 3 years ago

No worries. Hope you have fun learning!

johngray1965 commented 2 years ago

Hello, I'll take a crack at the iOS wrapper.

PruthviSooni commented 7 months ago

ive deeper with you

Hello @ethan-ou, Are you going to implement IOS part?