Giter Site home page Giter Site logo

Error 9 about speech_recognition HOT 5 OPEN

rxlabz avatar rxlabz commented on July 19, 2024
Error 9

from speech_recognition.

Comments (5)

vintage avatar vintage commented on July 19, 2024 2

Hey @dheerajv09 - I just published a PR which makes such errors more developer-friendly #40 The error code 9 is about missing permissions:

  1. Make sure you've added <uses-permission android:name="android.permission.RECORD_AUDIO" /> to AndroidManifest
  2. Before starting speech recognition ask user for proper permission. I'm using https://pub.dartlang.org/packages/permission_handler (PermissionGroup.speech and PermissionGroup.microphone are the ones you are looking for)

from speech_recognition.

dheerajv09 avatar dheerajv09 commented on July 19, 2024 1

I figured it out.
Thanks for help

from speech_recognition.

wardpenney avatar wardpenney commented on July 19, 2024

@dheerajv09 did you find out something other than the permission in AndroidManifest.xml? I have that permission set, but I keep getting Error 9, and it is not popping up a request for permission.

from speech_recognition.

dheerajv09 avatar dheerajv09 commented on July 19, 2024

I will suggest instead of using emulator try to run program in your real mobile , by giving all the permission in settings specially microphone permission.
This worked for me.

Let me know if it workes with you.

from speech_recognition.

wardpenney avatar wardpenney commented on July 19, 2024

@dheerajv09 Got it, thank you!

Perhaps it is an issue on emulators only. My emulator does not request permissions to the user, which is strange.

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.