csdcorp / speech_to_text

A Flutter plugin that exposes device specific text to speech recognition capability.
BSD 3-Clause "New" or "Revised" License
372 stars 231 forks source link

MacOS Desktop Support Request #231

Open akashpamal opened 3 years ago

akashpamal commented 3 years ago

Hi! I'm working on a MacOS desktop application that requires the use of speech recognition. Currently, the plugin works on the iOS emulator but throws an error when I run for MacOS desktop: MissingPluginException(No implementation found for method initialize

I would love to see MacOS support for this package. Please let me know if I can help in any way.

sowens-csd commented 3 years ago

I don't currently have a timeline for adding Mac to the supported platforms, though it is on the list.

The plugin is setup to make it easy to implement on a new platform. A platform is supported by implementing the SpeechToTextPlatform class. There's an example of how to do it in the speech_to_text_web.dart file. If you'd like to submit a PR I'd be happy to review and include it.

akashpamal commented 3 years ago

Sounds great, thank you! I'll take a look at the example and try adding MacOS support.

sowens-csd commented 2 years ago

I've finally made some small progress on this issue. The current version in the repo now allows the plugin to compile for use on Mac. On Mac it currently always reports voice recognition as unavailable. This version means that you can now use the plugin in apps that will be deployed on Mac but you won't get any voice recognition capability. In an upcoming release I'll add Mac voice support.

Justus-M commented 1 year ago

+1 would appreciate the recognition capability on mac!

johnareid54 commented 1 year ago

@Justus-M +1 would appreciate the recognition capability on mac!

I too would appreciate a version for mac.

TomTom101 commented 9 months ago

+1 with addsPunctuation enabled!

alexrabin-sentracam commented 2 months ago

I created a pr for macOS support but it has the caveat of not being able to run in debug mode on VSCode. It does work correctly from debugging and building directly from Xcode.

There is a known issue on the flutter platform where macOS permissions cause crashes when being run from VSCode. https://github.com/flutter/flutter/issues/70374