Giter VIP home page Giter VIP logo

Comments (13)

Shne avatar Shne commented on May 28, 2024 1

I removed the plugin (with tns plugin remove), removed my added permissions from AndroidManifest.xml, added the plugin again (with tns plugin add) and built and deployed using sidekick, with webpack enabled, and it works and asks for permission!

from nativescript-speech-recognition.

tushar-1health avatar tushar-1health commented on May 28, 2024

@EddyVerbruggen Any update on the handler?

from nativescript-speech-recognition.

EstebanErcole avatar EstebanErcole commented on May 28, 2024

+1

from nativescript-speech-recognition.

ochemerys avatar ochemerys commented on May 28, 2024

"nativescript-speech-recognition": "^1.3.1" still has this issue. Any plans?

from nativescript-speech-recognition.

neil-119 avatar neil-119 commented on May 28, 2024

Same issue still. Any workarounds?

from nativescript-speech-recognition.

Shne avatar Shne commented on May 28, 2024

I've made a fork where I've added an onError callback to the options that is called with the error code when an error occurs in android. https://github.com/Shne/nativescript-speech-recognition/commit/bd64fde968959797e23a50dad33bab144e288ef2

I'll open a pull request to see if it can be merged into this and unto npm. Until then, you can use it directly by running tns plugin add https://github.com/Shne/nativescript-speech-recognition/archive/v1.3.2-OnError.tar.gz

You might need to remove the existing plugin first with tns plugin remove nativescript-speech-recognition though I'm not sure that's necessary

from nativescript-speech-recognition.

EddyVerbruggen avatar EddyVerbruggen commented on May 28, 2024

Thanks! Give 1.4.0 a spin.

from nativescript-speech-recognition.

Shne avatar Shne commented on May 28, 2024

I'm using 1.4.0 now and it's working great.

I did have a problem with it not asking for microphone permission when starting to listen and then failing and logging

Please allow access to the Microphone and try again. (tip: pass in a reject to receive this message in your app)

After I added <uses-permission android:name="android.permission.RECORD_AUDIO" /> in the AndroidManifest.xml it worked fine again.
But I'm not entirely sure whether that is caused by a change in the plugin or something else.

from nativescript-speech-recognition.

EddyVerbruggen avatar EddyVerbruggen commented on May 28, 2024

@Shne Thanks for reporting back. Hmmm, that permission should be added automatically and I didn't change how that works. Can you check your node_modules/nativescript-speech-recognition/platforms/android folder? it should contain this file which has a permission that should be merged automatically compile-time.

It could be a NativeScript-version issue. What does nativescript --version say?

from nativescript-speech-recognition.

Shne avatar Shne commented on May 28, 2024

The file is there, and contains the same.
My nativescript version is 4.2.3.

I believe it's just my nativescript and/or sidekick messing up. I've had problems getting it to just deploy correctly.

from nativescript-speech-recognition.

EddyVerbruggen avatar EddyVerbruggen commented on May 28, 2024

@Shne Thanks. I'll keep an eye on similar reports for now.

from nativescript-speech-recognition.

EddyVerbruggen avatar EddyVerbruggen commented on May 28, 2024

Just released 1.4.1 that may help with sidekick build issues (and should make sure manually adding that permission to your project is no longer needed).

from nativescript-speech-recognition.

EddyVerbruggen avatar EddyVerbruggen commented on May 28, 2024

Awesome 💪

from nativescript-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.