Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: No speech detection for 60s #42

Closed
ghettokon opened this issue May 16, 2017 · 5 comments
Closed

error: No speech detection for 60s #42

ghettokon opened this issue May 16, 2017 · 5 comments

Comments

@ghettokon
Copy link

ghettokon commented May 16, 2017

How can we avoid this error?

many many thanks!

error: the speech_to_text service returned an error. Error: No speech detected for 60s.

@ghettokon
Copy link
Author

I found this file
/home/pi/tjbot/recipes/conversation/node_modules/watson-developer-cloud/speech-to-text/recognize_stream.js

and I changed the value of inactivity_timeout, and stay up longer.

Is this the right way to do it!?

@victordibia
Copy link
Contributor

victordibia commented May 16, 2017

Hi @ghettokon
Exactly right! Thats the right way to do it!

You will need to add this flag to your tjbot config when you instantiate it .. listen.

var tjConfig = {
    log: {
        level: 'verbose'
    },
listen: {
        microphoneDeviceId: "plughw:1,0", // plugged-in USB card 1, device 0; see arecord -l for a list of recording devices
        inactivityTimeout: -1, // -1 to never timeout or break the connection. Set this to a value in seconds e.g 120 to end connection after 120 seconds of silence
        language: 'en-US' // see TJBot.prototype.languages.listen
    }
};

Let me know if this helps!

@ghettokon
Copy link
Author

ghettokon commented May 19, 2017 via email

@victordibia
Copy link
Contributor

Yes, this is the case.
You can read more on the limits here - https://www.ibm.com/watson/developercloud/doc/speech-to-text/index.html.

-V.

@mimoraes
Copy link

mimoraes commented Nov 5, 2017

@victordibia Would you have an idea why my TJBot isn't listening the right sentence??
I speak: Turn off the light, and he understands no sense words

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants