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

speech stop listening after few seconds #442

Closed
heroddaji opened this issue Aug 8, 2016 · 2 comments
Closed

speech stop listening after few seconds #442

heroddaji opened this issue Aug 8, 2016 · 2 comments
Assignees
Labels
ML 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@heroddaji
Copy link

So I manage to make speech works on my rpi3 using the sample code speech_streaming.py.
But I want my program always listen for a long period of time (days).

But the sample code seem to be able to listen for brief moment after it start-ups. I speak a few sentences, then I silent for a few secs, then in the transcript response, I will see the accuracy value. After that, the program stop listening, but the app does not quit, it just stay there

So is their a way to make the script listen forever?
and if there is no way to do it, can I constantly reset the request every few seconds, then there is alway listening thread?

Also my concern is when I reset the listening thread and there is no sound to recognize, will it count as 1 speech_api request?

@heroddaji heroddaji changed the title speech stop listening after few second speech stop listening after few seconds Aug 8, 2016
@theacodes theacodes added the ML label Aug 8, 2016
@jerjou
Copy link
Contributor

jerjou commented Aug 8, 2016

Out of curiosity - what did you end up having to tweak to get things running on the rpi?

Take a look at the usage limits. Basically, it'll only recognize for a minute at a time. What you could do is to detect silences, and only start streaming audio to the api when there's someone speaking, and close the connection once you detect silence again (after some pause, presumably, to allow for folks taking a breath or whatnot).

@heroddaji
Copy link
Author

heroddaji commented Aug 9, 2016

thank you for your answer.
So when you say it'll only recognize for a minute, you mean at one time or many time?

  • so can I speak many times during one minute and get recognized, - or just one time speak, but with maximum duration of 1 minute?

@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 6, 2020
msampathkumar pushed a commit that referenced this issue Nov 14, 2022
* chore(python): drop python 3.6

Source-Link: googleapis/synthtool@4f89b13
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c

* add api_description to .repo-metadata.json

* require python 3.7+ in setup.py

* remove python 3.6 sample configs

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* trigger CI

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
telpirion pushed a commit that referenced this issue Jan 13, 2023
Source-Link: googleapis/synthtool@50db768
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
dandhlee pushed a commit that referenced this issue Feb 9, 2023
Source-Link: googleapis/synthtool@50db768
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
telpirion pushed a commit that referenced this issue Mar 13, 2023
Source-Link: googleapis/synthtool@50db768
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ML 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

5 participants