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

Recording time and events triggered [ Android ] #83

Open
mathieu21 opened this issue Nov 28, 2016 · 2 comments
Open

Recording time and events triggered [ Android ] #83

mathieu21 opened this issue Nov 28, 2016 · 2 comments

Comments

@mathieu21
Copy link

mathieu21 commented Nov 28, 2016

So I tested on 3 different devices the different behavior of how the events ( onerror, onend, onspeechend, ... ) are triggered and it all time change from a android version to another.

For example : when no sounds is detected ( no one speaking )

->on android 6.0.1 is like 3s , then it triggers onspeechend event then onerror are triggered
-> on Android 5.1 is like 5s and then the onerror is triggered and comes later the onspeechend

I am wondering how can I change this time of listening before triggering anything.

Ideally I woulk like to trigger the listening when i push on a button and it will have to stop when i press another one, but this doesnt seem to be possible.

I have a lot of difficulties to establish something stable on all android versions.

Any hints ?

Thanks for the work this is great plugin !

@mathieu21 mathieu21 changed the title Recording time and events triggered Recording time and events triggered [ Android ] Nov 28, 2016
@valix85
Copy link

valix85 commented Dec 2, 2016

I try to capture audio on android 5.0 and 6.0 but when i click the button nothing append only a fast sound...in console result is always undefined but object recognition exist...I think recognition.start is veryvery fast (a lot of ms)...

@jrlandau
Copy link

jrlandau commented Jan 9, 2017

I am trying to deal with the same problem. The length of time allowed for speech to start can vary greatly. It would help somewhat if the events now unused were made available in this plugin--especially the start and end of audio capture.

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

3 participants