poiuytrez / speechrecognizer Goto Github PK
View Code? Open in Web Editor NEWSpeechRecognizer Cordova plugin for Android
SpeechRecognizer Cordova plugin for Android
When I used this plugin in my app running on Android M and my app is in foreground.
the google native voice is prompted with error : Can't reach Google at the moment.
any suggestions for a quick fix?
Hi, I hope this is the right place,
I encountered a problem when trying to use SpeechRecognizer.
I'm starting to initiate a speech recognition with the following code:
window.plugins.speechrecognizer.startRecognize(function(result){
//alert(result);
//window.plugins.tts.speak(result);
}, function(errorMessage){
console.log("Error message: " + errorMessage);
},0);
It advances in startSpeechRecognitionActivity()
until the intent is supposed to be fired, then I get the exception "Error calling method on NPObject.:857". Almost immediately before that, I see "We have a callback to send this result to" in LogCat.
What am I doing wrong?
edit: apparently, onActivityResult()
is called, with resultCode == 0.
Is it possible to have a different visual appearance? The dialog is masking most of the screen, I'd like a smaller one so the user can see more of the rest.
Can anyone pls suggest a fix for this issue http://stackoverflow.com/questions/37158366/ionic-app-not-recognizing-speech-in-android-mobile
I got below error
Uncaught TypeError: Cannot read property 'speechrecognizer' of undefined at file:///android_asset/www/index.html:21
hi all
having trouble using the plugin
Hello, I would like to add a 3 seconds time frame before the it starts processing results. Any suggestion on how I can go about it?
Hi, I am getting this error while following a tutorial on youtube for ionic framework, I installed the plugin and ran this command 'ionic cordova run browser'. this is the code
import { SpeechRecognition } from '@ionic-native/speech-recognition';
constructor(public navCtrl: NavController, public navParams: NavParams, public speech: SpeechRecognition) {
}
async isSpeechSupported(): Promise {
const isAvailable = await this.speech.isRecognitionAvailable();
console.log(isAvailable);
alert(isAvailable);
return isAvailable;
}
Hi,
Is this solution only for Android or is it supported for iOS and other devices. I am asking this because I am developing an HTML5 app using intel xdk and this allows you to build to different platforms.
Regards,
Keith
Hi All
I am using Speech Recognizer with Bluetooth Headset but it is still taking input from phone.
i have tested my Bluetooth device with Google Now and it is working and taking input from Bluetooth Headset.
Please help
Thanks in Advance.
Brijesh
Hi ,
I want to start the speech recognition by uttering particular text . Suppose consider I want to initiate the speech recognition by uttering "Hello my-app" and then all the words i speak should get recognized .
And also i don't want the dialog to be shown up during speech recognition . How do i turn that off ??
import ...
public class SpeechRecognizer extends CordovaPlugin {
// ...
// Check to see if a recognition activity is present
private void checkSpeechRecognition() {
PackageManager pm = cordova.getActivity().getPackageManager();
List activities = pm.queryIntentActivities(
new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0);
if (activities.size() != 0) {
// true
} else {
// false
}
}
// ...
How to send the response when true or false to onActivityResult
??
Thanks for writing the plugin! Any plans, or advice, for an iOS version?
Cheers.
I'm new to android development, and am having a problem setting this plugin up. I have followed all of the instructions in the documentation, but when I run the app, i get the following error:
Uncaught ReferenceError: module is not defined at file:///android_asset/www/SpeechRecognizer.js:51
when i look at line 51 in SpechRecognizer.js, I'm seeing:
module.exports = new SpeechRecognizer();
I double checked, and I made the change to rex/xml/config.xml that was detailed in the documentation.
Are there any other configurations that I can check and change in order to get this plugin working?
Thanks,
Josh
I am using this plugin and I realize (by Analytics) that occurs errors when the app is trying to recognize the voice. The errorMessage shows numbers (0, 1, 2, 3...). What these numbers means?
Is there any way to hide or change the popup?
java.lang.NullPointerException: rhs == null
at java.lang.String.compareTo(Native Method)
at org.apache.cordova.media.AudioPlayer.readyPlayer(AudioPlayer.java:492)
at org.apache.cordova.media.AudioPlayer.startPlaying(AudioPlayer.java:217)
at org.apache.cordova.media.AudioHandler.resumeAllGainedFocus(AudioHandler.java:394)
at org.apache.cordova.media.AudioHandler$1.onAudioFocusChange(AudioHandler.java:411)
at android.media.AudioManager$FocusEventHandlerDelegate$1.handleMessage(AudioManager.java:3203)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
Hello all,
I have an issue : i would like the user to be able to stop manually the recognition (which is generaly possible pressing the recognition button in the popup...), although, when i try it with this plugin i got an error and it does not process the results.
Any idea ?
Thanks a lot in advance
Frederic
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.