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!
Would love to know this as well.
@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
});
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?
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?
Editing the hardcoded values in the java files don't work for me either.
not working to me as well :(
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.
Any updates on this? It is not working for me either.
Most helpful comment
@dgurns @henrych4
This has been a suggestion in the past, so I started implementing this with
Android(first). In0.2.xyou now have (limited) access to the RecognizerIntentEXTRA_*options such asEXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLISEXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLISEXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLISare now customizable.For example, to force the intent to recognize for 10 seconds without stopping,