Comments (13)
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.
@EddyVerbruggen Any update on the handler?
from nativescript-speech-recognition.
+1
from nativescript-speech-recognition.
"nativescript-speech-recognition": "^1.3.1" still has this issue. Any plans?
from nativescript-speech-recognition.
Same issue still. Any workarounds?
from nativescript-speech-recognition.
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.
Thanks! Give 1.4.0 a spin.
from nativescript-speech-recognition.
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.
@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.
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.
@Shne Thanks. I'll keep an eye on similar reports for now.
from nativescript-speech-recognition.
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.
Awesome 💪
from nativescript-speech-recognition.
Related Issues (20)
- The 'finished' boolean is not correct when partial results are requested HOT 6
- Documentation HOT 1
- Infinite "Cycle link found" HOT 1
- Use the correct default locale on iOS
- Is it possible to save an audio file of the recognised speech? HOT 1
- Error when trying to run demo
- Continuous Speech Recognition HOT 3
- _AVAE_Check: required condition is false HOT 1
- Error in demo HOT 2
- Error code: 3 HOT 1
- AndroidX support for NativeScript 6
- iOS how to determine if the user has paused and get transcription.finished has true
- Service not registered: android.speech.SpeechRecognizer$Connection@85fc805
- how to check if microphone and speaker is busy
- nativescript-speech-recognition HOT 1
- Error in request permission HOT 2
- stopListening request causes crashes when used in a worker
- Feature request: Can you have a full javascript demo version available?
- Sample code in javascript would be greatly appreciated.
- CONSOLE LOG: TypeError: Cannot read property 'osVersion' of undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-speech-recognition.