offline_speech_recognition icon indicating copy to clipboard operation
offline_speech_recognition copied to clipboard

IOS Implementation

Open Psycotype opened this issue 4 years ago • 5 comments

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!

Psycotype avatar Feb 24 '21 00:02 Psycotype

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.

ethan-ou avatar Feb 24 '21 00:02 ethan-ou

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!

Psycotype avatar Feb 24 '21 00:02 Psycotype

No worries. Hope you have fun learning!

ethan-ou avatar Feb 24 '21 01:02 ethan-ou

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

johngray1965 avatar Dec 02 '21 16:12 johngray1965

ive deeper with you

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

PruthviSooni avatar Dec 27 '23 07:12 PruthviSooni