Code Monkey home page Code Monkey logo

speechrecognizer's People

Contributors

avgp avatar luigi37 avatar michaeloki avatar poiuytrez avatar pwqw avatar tashemi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

speechrecognizer's Issues

Error calling method on NPObject

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.

Alternate GUI?

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.

having trouble using the plugin

hi all
having trouble using the plugin

  1. do i need any other plugin like "cordova-plugin-media" on top of speechrecogniser?
    2.do i need to enable mic ?
    for some reason i cant get it to work
    is there any sample project that i can use?
    thanks
    A.S

3 seconds time frame

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?

Error: exec proxy not found for :: SpeechRecognition :: isRecognitionAvailable

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;
}

Android Only

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

Speech Recognizer with Bluetooth Headset

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

Start Recognition with a custom word and suppress recognition dialog.

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 ??

Check if speech recognition exist

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 ??

iOS Version

Thanks for writing the plugin! Any plans, or advice, for an iOS version?

Cheers.

module is not defined

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

What means the numbers on errorMessage

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?

Hide Popup

Is there any way to hide or change the popup?

'Unfortunately app has stopped' errors

Android, cordova 6.2.0, Error detail, please help me fix that

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)

Error when user stop manually the speech recognition ?

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

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.