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

Set maximum active listening time #13

Open
rcbyron opened this issue Jan 12, 2016 · 2 comments
Open

Set maximum active listening time #13

rcbyron opened this issue Jan 12, 2016 · 2 comments
Assignees

Comments

@rcbyron
Copy link
Owner

rcbyron commented Jan 12, 2016

In case the active listening stalls out, set a maximum time to cut off the active listening.

@reflexity
Copy link

I think this is a very good idea! Personally, I have quite some moments when the active listening keeps listening, almost forever. It is very frustrating ;) I know we have the ambient noise code in the STT script, but shouldn't we place specifically a timeout within the active listening function? Let's say for 10 seconds. Am I wrong about this? I am just throwing some suggestions.

@loctruong96
Copy link

loctruong96 commented Feb 19, 2017

you can, go to the stt.py in athena folder, then change the following line on active_listening function
from audio = r.listen(src) --------->To
audio = r.record(src,duration = 4)
it will only listen for 4 second. because athena uses speech_recognition api and they already did this.
If you use google speech api, they max it out at 15 seconds for the duration of each request

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

4 participants