voice
voice copied to clipboard
Is there exist a way to keep listening to user input (for particular time period)?
Voice.start('en-US', { EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS: 10000 });
It is not working for me @lfoliveir4 please help me out. Thanks..!
@vaibhgupta09 be more specific please
hi Currently the mic only take voice input by 5 sec i need to extend that time period
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..
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.
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!
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...
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).
Well, I guess in that case... I'll just borrow an android phone to test on then...
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
i have the same problem :( some news?
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.
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.
does anybody have a solution?
We are facing the same issue, any solutions for android?
Even google assistant is being idle for 10 seconds. Commenting for the solutions!
I am also facing the same problem, does anybody have a solution
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.
any update on this ?
any update on this ? especially for IOS
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.
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 :(