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

Is there exist a way to keep listening to user input (for particular time period)? #219

Open
vaibhgupta09 opened this issue Dec 16, 2019 · 21 comments

Comments

@vaibhgupta09
Copy link

Voice.start('en-US', {
EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS: 10000
});

It is not working for me
@lfoliveir4 please help me out.
Thanks..!

@lfoliveir4
Copy link
Collaborator

@vaibhgupta09 be more specific please

@vaibhgupta09
Copy link
Author

hi
Currently the mic only take voice input by 5 sec i need to extend that time period

@MaheshMaharana
Copy link

Hello,
I am also facing this problem..
If I don't say anything for 5 sec then it stops listening..
I want to make the app that listen to user whenever the user speaks.. Even after 1 min..

@saulojoab
Copy link

I've been wondering the same thing. Is it possible to make the app keep on listening for an unlimited period of time?

Ex: It keeps on listening until I press a button to make it stop. I can be in complete silence for one minute or more and it'll keep on listening.

I searched for a prop or something that did that, didn't find it. That would be great.

@sjc5
Copy link

sjc5 commented Feb 14, 2020

For me, i can't even get it to keep listening for more than 2-3 seconds of silence without auto-stopping, even when setting high levels for these: EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS,
EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS,
EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS

Would love any hints on a solution that works!

@RickyGuoTheCrazish
Copy link

RickyGuoTheCrazish commented Feb 18, 2020

For me, i can't even get it to keep listening for more than 2-3 seconds of silence without auto-stopping, even when setting high levels for these: EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS,
EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS,
EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS

Would love any hints on a solution that works!

Facing same question here when running app on virtual android machine in android studio,
ps: I copied almost everything from voice test(except the mic.png) as given from the documentation. Then when I run on virtual android machine, it keeps auto-stopping no matter if I say a word or not.

pps: Here is part of log file of virtual android machine
LOG onSpeechStart: {"error": false}
LOG onSpeechVolumeChanged: {"value": -2.119999885559082}
LOG onSpeechVolumeChanged: {"value": -2}
LOG onSpeechVolumeChanged: {"value": -2}
LOG onSpeechVolumeChanged: {"value": -2}
LOG onSpeechVolumeChanged: {"value": -2}
LOG onSpeechVolumeChanged: {"value": -2}
LOG onSpeechError: {"error": {"message": "2/Network error"}}
LOG onSpeechError: {"error": {"message": "5/Client side error"}}
LOG onSpeechVolumeChanged: {"value": -2.119999885559082}
LOG onSpeechVolumeChanged: {"value": -2.119999885559082}
LOG onSpeechStart: {"error": false}
LOG onSpeechVolumeChanged: {"value": -2}
LOG onSpeechVolumeChanged: {"value": -2.119999885559082}
LOG onSpeechError: {"error": {"message": "2/Network error"}}

Appreciate for any kinds of help...

@sjc5
Copy link

sjc5 commented Feb 21, 2020

I don't think the mic works on a virtual android machine. I couldn't get it working in there either, but it works fine on all real Android devices I've tested (barring the issue that it stops recording if you're silent between sentences for more than a second or two, but I think that may be an Android speech API issue).

@RickyGuoTheCrazish
Copy link

Well, I guess in that case... I'll just borrow an android phone to test on then...

@susatya
Copy link

susatya commented Aug 5, 2020

I've been wondering the same thing. Is it possible to make the app keep on listening for an unlimited period of time?

Ex: It keeps on listening until I press a button to make it stop. I can be in complete silence for one minute or more and it'll keep on listening.

I searched for a prop or something that did that, didn't find it. That would be great.

I've been wondering the same thing. Is it possible to make the app keep on listening for an unlimited period of time?

Ex: It keeps on listening until I press a button to make it stop. I can be in complete silence for one minute or more and it'll keep on listening.

I searched for a prop or something that did that, didn't find it. That would be great.

yeah i was looking for the same thing

@alfonsograziano
Copy link

i have the same problem :( some news?

@yuripinage
Copy link

Does anybody have a new update? I've been trying to force start when onSpeechError or onSpeechEnd are triggered.
But this just messes with the UI because the user may talk before the restart, which is kinda slow.

On iOS is working fine even in the simulator but android is driving me nuts.

@RambousekTomas
Copy link

I am having same problem. But I believe, that options object is omitted, because if I use
{ EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS: 10000, EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS: 5000, EXTRA_MAX_RESULTS: 8, EXTRA_PARTIAL_RESULTS: false } I will get default behaviour as if no options object has been passed.
As default I can talk until I have breath and quickly talking over the limit of 8 max result and also I would expect that onSpeechPartialResults would not be triggered.

@hamzadahmani
Copy link

does anybody have a solution?

@tradebulls
Copy link

We are facing the same issue, any solutions for android?

@Sravansuhas
Copy link

Even google assistant is being idle for 10 seconds. Commenting for the solutions!

@babthamotharan
Copy link

babthamotharan commented Aug 25, 2021

I am also facing the same problem, does anybody have a solution

@mahevstark
Copy link

I got it working, it's not good solution, but wanted to post here maybe it's enough for you.

Just call the start function inside onSpeechEnd function. it beeps but works.

@Hostname47
Copy link

any update on this ?

@nglelinh
Copy link

any update on this ? especially for IOS

@Forest-Person
Copy link

I too would like to know if there is an update, an always listening function would help with LLM chatbot for real time local ai chat.

@RickyGuoTheCrazish
Copy link

I too would like to know if there is an update, an always listening function would help with LLM chatbot for real time local ai chat.

Things changing fast, yet the problem remain unsolved :(

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