voice icon indicating copy to clipboard operation
voice copied to clipboard

Continuously listening to user input

Open henrych4 opened this issue 9 years ago • 8 comments

It seems that the voice detecting function will terminate after starting detection a few seconds. Is there exist a way to keep listening to user input?

Thanks!

henrych4 avatar Aug 14 '17 06:08 henrych4

Would love to know this as well.

dgurns avatar Sep 01 '17 19:09 dgurns

@dgurns @henrych4 This has been a suggestion in the past, so I started implementing this with Android (first). In 0.2.x you now have (limited) access to the RecognizerIntent EXTRA_* options such as EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS are now customizable.

For example, to force the intent to recognize for 10 seconds without stopping,

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

wenkesj avatar Oct 09 '17 01:10 wenkesj

Awesome news! I had played around with setting these as hardcoded values in the component java files, but they didn't seem to have any effect. Have you been able to get them working?

dgurns avatar Oct 09 '17 15:10 dgurns

This isn't working for me on android - is there an alternative to getting this running continuously? or at least increasing the time for silence?

AidanDaniel97 avatar May 28 '18 14:05 AidanDaniel97

Editing the hardcoded values in the java files don't work for me either.

zhish3n avatar Jul 04 '18 03:07 zhish3n

not working to me as well :(

darknblack avatar Feb 26 '19 06:02 darknblack

Hi, are there any updates on this issue? We have the same problem using target api 28. Would be happy to contribute to a fix of this issue.

FabioSchmidberger avatar Nov 17 '19 21:11 FabioSchmidberger

Any updates on this? It is not working for me either.

samueljcook avatar Feb 14 '20 19:02 samueljcook