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

feat: Voice Recognition stops listening after 1 silence second, can i increase it ? #102

Open
Labaffe opened this issue Jun 25, 2024 · 5 comments

Comments

@Labaffe
Copy link

Labaffe commented Jun 25, 2024

all is title

@tobika
Copy link

tobika commented Jul 5, 2024

Hello,
I have the same problem on android. The google prompt is closing just after 1 sec of silenec. Adding this parameters doesn't seem to have an effect:

intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_MINIMUM_LENGTH_MILLIS, Long.valueOf(5000));
intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_LENGTH_MILLIS, Long.valueOf(5000));

For info I am using the google prompt, not the web implementation.

@tobika
Copy link

tobika commented Jul 5, 2024

I found a solution that works without the native google prompt. Will propose a PR in the coming days :)

@wgehner
Copy link

wgehner commented Aug 2, 2024

Yes, the listeningState event is firing the the stopped event way too quickly. I need to extend it to know when to submit the data to ai. Not using prompt.

@222dipa
Copy link

222dipa commented Sep 27, 2024

Hi @tobika, I downloaded your fork project, compiled and installed it in my Ionic project.

How can I use the allowForSilence property?

I'm trying to set 60000ms, but after about 20 seconds of silence the microphone automatically closes.

Also, could you tell me how to set the partialResults property? Should it be true or false? Where is it best to collect the results? Adding a listener for partialResults or segmentResults?

Thanks so much!!!!

@msty
Copy link

msty commented Nov 17, 2024

Can confirm I observe the same issue on android. On iOS the issue doesn't seem to be present.

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

No branches or pull requests

5 participants