Giter Site home page Giter Site logo

Android - error: The argument type '() → void' can't be assigned to the parameter type '(String) → void'. about speech_recognition HOT 6 OPEN

rxlabz avatar rxlabz commented on July 19, 2024
Android - error: The argument type '() → void' can't be assigned to the parameter type '(String) → void'.

from speech_recognition.

Comments (6)

ratnapriya4g avatar ratnapriya4g commented on July 19, 2024 1

You just need to replace this _speech.setRecognitionCompleteHandler(onRecognitionComplete); to
_speech.setRecognitionCompleteHandler((_) => onRecognitionComplete());.

The error will go automatically.
@SHAKTHI62

from speech_recognition.

vintage avatar vintage commented on July 19, 2024

Hey @SHAKTHI62

See here - https://github.com/rxlabz/speech_recognition/pull/29/files#diff-d9a718a3042c2ebab14df5f34ef46a52R53 - to check how to fix the example project

from speech_recognition.

SHAKTHI62 avatar SHAKTHI62 commented on July 19, 2024

Hi @vintage ,
Thank you so much for your update.
The issue is fixed, but i how can compile the flutter plugin project and run the example flutter project.
I run the example project "Program linking failed." error message displayed.

from speech_recognition.

vintage avatar vintage commented on July 19, 2024
  1. Clone the repo
  2. Open it with Android Studio
  3. Open pubspec.yaml and at the top click on Packages get
  4. Start the emulator
  5. Click on Play button to build & run the example app

That's it - should build and run the example app on your emulator. Can you provide the logs with error?

from speech_recognition.

chunhunghan avatar chunhunghan commented on July 19, 2024

Thank you for your information. Example work great now

from speech_recognition.

exeptionerror avatar exeptionerror commented on July 19, 2024

All Possible Solution added here [Solved] The argument type ‘Future’ can’t be assigned to the parameter type ‘void Function()’

from speech_recognition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.