GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Google Speech API/How do I extend the stream duration? · Issue #807 · GoogleCloudPlatform/python-docs-samples

Google Speech API/How do I extend the stream duration? #807

New issue
Copy link
New issue
Copy link
Closed
Closed
Google Speech API/How do I extend the stream duration?#807
Copy link
Labels
ML

Description

@KJow
KJow
opened on Feb 15, 2017
Issue body actions

I had tried grpc/transcribe_streaming.py code. It seems really cool.
It will ended after 65 seconds.
"Exceeded maximum allowed stream duration of 65 seconds."
I had tried to modify the "DEADLINE_SECS" for more time but not working.
Is there anyone know how to extend the time?

Activity

  1. theacodes commented on Feb 15, 2017

    @theacodes
    theacodes
    on Feb 15, 2017
    Contributor
    More actions

    @jerjou @gguuss

  2. theacodes
    added
    bug
    ML
    on Feb 15, 2017
  3. jerjou commented on Feb 15, 2017

    @jerjou
    jerjou
    on Feb 15, 2017
    Contributor
    More actions

    Hello!
    The streaming API is currently limited to 1 minute of audio.

    From some discussion in #517, I wrote another sample in the minute_workaround branch that restarts the stream at appropriate times, that you might find helpful if you need to stream audio for more than a minute.

    Reacted by Ason Peikoff
  4. jerjou
    closed this as completedon Feb 15, 2017
  5. asonpeikoff commented on Feb 25, 2018

    @asonpeikoff
    asonpeikoff
    on Feb 25, 2018
    More actions

    @jerjou I gave a well deserved thumbs up but the link seems to be broken, is there a new link? Incidentally, is possible that this indicative more that we may be going about something the wrong way?

  6. ttodua commented on Mar 4, 2018

    @ttodua
    ttodua
    on Mar 4, 2018
    More actions

    Seems talking about https://github.com/GoogleCloudPlatform/python-docs-samples/blob/speech-continuous/speech/cloud-client/transcribe_streaming_indefinite.py, but i wanted for c#... thanks anyway

  7. eyaler commented on May 11, 2018

    @eyaler
    eyaler
    on May 11, 2018
    More actions

    with transcribe_streaming_indefinite i still get:
    google.api_core.exceptions.OutOfRange: 400 Exceeded maximum allowed stream duration of 65 seconds.

  8. SamuelHill commented on May 21, 2018

    @SamuelHill
    SamuelHill
    on May 21, 2018
    More actions

    With transcribe_streaming_mic I was getting this error:
    google.api_core.exceptions.OutOfRange: 400 Exceeded maximum allowed stream duration of 65 seconds.
    With transcribe_streaming_indefinite I am getting this error:
    google.api_core.exceptions.OutOfRange: 400 Audio data is being streamed too slow. Please stream audio data approximately at real time.

    Reacted by tusharkgerg
  9. wangejay commented on Dec 3, 2018

    @wangejay
    wangejay
    on Dec 3, 2018
    More actions

    I wrote another sample to transcribe always. LINK

    Catch the except first:
    try:
    listen_print_loop(responses)
    except Exception as exception:
    print("Excption handle : Exceeded maximum allowed stream duration of 65 seconds")

    and the Run Infinite loop

    Reacted by AI葵 and Hsuan Ting Yeh
  10. tusharkgerg commented on Nov 10, 2019

    @tusharkgerg
    tusharkgerg
    on Nov 10, 2019
    More actions

    With transcribe_streaming_mic I was getting this error:
    google.api_core.exceptions.OutOfRange: 400 Exceeded maximum allowed stream duration of 65 seconds.
    With transcribe_streaming_indefinite I am getting this error:
    google.api_core.exceptions.OutOfRange: 400 Audio data is being streamed too slow. Please stream audio data approximately at real time.

    @SamuelHill were you able to fix this?

  11. pauloesteban commented on Feb 26, 2020

    @pauloesteban
    pauloesteban
    on Feb 26, 2020
    More actions

    I wrote another sample to transcribe always. LINK

    Catch the except first:
    try:
    listen_print_loop(responses)
    except Exception as exception:
    print("Excption handle : Exceeded maximum allowed stream duration of 65 seconds")

    and the Run Infinite loop

    Catching exceptions every 5 minutes is not optimal, but it works.

  12. ttodua commented on Feb 26, 2020

    @ttodua
    ttodua
    on Feb 26, 2020
    More actions

    new apis from 2019 I no longer need 65 seconds, as it continiously works.

  13. yeh-hsuan-ting commented on Mar 19, 2020

    @yeh-hsuan-ting
    yeh-hsuan-ting
    on Mar 19, 2020
    More actions

    new apis from 2019 I no longer need 65 seconds, as it continiously works.

    May I know which new api you are refering to ?

  14. arliber commented on Nov 23, 2020

    @arliber
    arliber
    on Nov 23, 2020
    More actions

    @NoTiger Did you find an answer? The latest API is still throwing this exception

    Reacted by Bekhruz Otaev
  15. yeh-hsuan-ting commented on Nov 23, 2020

    @yeh-hsuan-ting
    yeh-hsuan-ting
    on Nov 23, 2020
    More actions

    @NoTiger Did you find an answer? The latest API is still throwing this exception

    Forgive me if I cannot provide a satisfactory answer. It has been some time. I remember the solution is on this thread. Something about infinite streaming. I check this thread again for you. The link seems broken. Perhaps they close the thread.

    P.S. I wrote in python.

    I think since they cloud the solution example https://github.com/GoogleCloudPlatform/python-docs-samples/blob/speech-continuous/speech/cloud-client/transcribe_streaming_indefinite.py

    Perhaps they already updated the api. If not, then try something like calling the function again for the same socket stream. And kept the last result string in an array. Good luck.

  16. Linchin
    added a commit that references this issue on Aug 18, 2025

    chore(deps): update dependency tqdm to v4.66.5 (#807)

    bae1244
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ML

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.