question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Service Timeout: Due to service inactivity, the client buffer exceeded maximum size. Resetting the buffer.

See original GitHub issue

Describe the bug When using continuous speech translation there is an intermittent cancellation of the recognizer, stopping translation for that client. This is an intermittent occurrence that seems to happen rarely.

We are passing a real-time stream (using AudioInputStream) to the recognizer, so we’re not sure how the buffer is exceeding the maximum size as the rate shouldn’t exceed any possible window allocated by the recognizer.

To Reproduce Unknown, no behavior discovered yet that indicates what is required to reproduce consistently. It might be if the translator has been running continuous speech translation for too long, but I have seen instances longer running than the ones that it occurred in.

Expected behavior The client sdk should continue to recognize speech when passing in a real-time audio stream for any length of time.

Version of the Cognitive Services Speech SDK Java 1.28.0

Platform, Operating System, and Programming Language OS: Linux (Debian 11 docker container) x64 Client SDK: Java 1.28.0

Additional context

Region: eastus Session id: 80e2d12dc1c14edf92a87da4fba84707

(Please pm for specific azure project id if needed by azure team)

We unfortunately have not caught this error with full logging enabled, but will try to in the future to update here.

Stacktrace:

java.lang.Exception: Speech translation canceled.
  at com.microsoft.cognitiveservices.speech.util.EventHandlerImpl.fireEvent(Unknown Source)
  at com.microsoft.cognitiveservices.speech.translation.TranslationRecognizer.canceledEventCallback(Unknown Source)
Unexpected error message: [Speech translation canceled.]
Unexpected error details: [Due to service inactivity, the client buffer exceeded maximum size. Resetting the buffer. SessionId: 80e2d12dc1c14edf92a87da4fba84707]

I’ve seen mentions of ways to manually change the buffer size in the config for the recognizer. What would be a recommended size to try to mitigate this to happen at a lower rate, even if it doesn’t 100% fix it?

Issue Analytics

  • State:open
  • Created 3 months ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
albseb511commented, Aug 11, 2023

@albseb511 could you open a new issue for that? That error string is coming from the speaker output in the JavaScript SDK and it’s going to be a different investigation, and we already have two separate issues comingled here.

Done.

https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/2046

1reaction
glecaroscommented, Aug 10, 2023

Hi @bobir01, you are correct. I removed the email from the message to prevent it from being scrapped.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ServiceTimeout, Due to service inactivity the client buffer ...
This issue does not occur regularly only sometimes. This seems to be caused by "service inactivity the client buffer size exceeded. Resetting ......
Read more >
serviceTimeout, Due to service inactivity the client buffer ...
I am using Azure speech SDK for speech-text translation functionality. The service is doing its job of translation however after 4minutes of ...
Read more >
Azure Speech SDK stopping the speech recognization ...
... the speech recognition with the status service Timeout, Due to service inactivity the client buffer size exceeded. Resetting the buffer.
Read more >
MQTT - AWS IoT Core
Messages that exceed the limit will be dropped. For more information about persistent message limits, see AWS IoT Core endpoints and quotas. When...
Read more >
WSGIDaemonProcess — mod_wsgi 4.9.5.dev1 documentation
Defines the maximum number of seconds allowed to pass before timing out on a write operation back to the HTTP client when the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found