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.

Random drops when using STT (JavaScript)

See original GitHub issue

Describe the bug For my use case, I need to convert both sides of a video call to text. For the mic, I am using the SDK’s mic recognition. For the speaker, I am using the MediaStream API.

I use continuous async recognition on both sides.

Completely randomly, I see drops in the STT (on both mic & speaker streams). The error message is

{
  privSessionId: 'F181283623C54E55AF77F6018A7D8FA7',
  privReason: 0,
  privErrorCode: 3
}

Please note that the error details field is undefined here.

As per the documentation, this is due to too many requests. But we’re on a paid tier and should not have this issue (I think).

Separately, if I try to restart the recognition, I see the following error

{
    "privSessionId": "9AC4B13654CE431BA7C0EAF39209DBA0",
    "privReason": 0,
    "privErrorDetails": "Validation failed with status: TooManyRequests websocket error code: 1007",
    "privErrorCode": 2
}

Which should be for “BadRequestParameters” but the error details lists “TooManyRequests”.

I’m try to figure these questions out & would appreciate inputs:

  1. why are these drops happening randomly?
  2. why does there seem to be disparity in the error messages?

To Reproduce Steps to reproduce the behavior:

  1. start mic recognition
  2. immediately start a new stream based recognition (capturing data from the speaker)

Expected behavior Multiple streams return data without dropping.

Version of the Cognitive Services Speech SDK 1.17

Platform, Operating System, and Programming Language

  • OS: Windows & MacOS
  • Hardware: x64
  • Programming language: JavaScript
  • Browser [e.g. Chrome, Safari]: Chromium (Electron wrapper)

Editing to add a few more session IDs where this has happened: ‘6AB0F788BF5748D4AEDA49C9BE4B2B55’ ‘FC0B3E74428F486A82A5F2FE185DE981’ ‘A28A98715DA34BA3A17697120A4B6C7E’ ‘18F23D3C0A854F12970E0707AAEFAA6C’ ‘3246FAFA4BB249E284E79338EC58215E’

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
has-ncommented, Oct 28, 2021

Sorry, need to update my last comment. I was not testing with two separate keys. Doing so now.

I’ll post an update here soon.

0reactions
has-ncommented, Nov 3, 2021

Thanks @glharper . The app is deployed across many users so will have to centralize the counting.

Will test with 1.19.0 and raise an issue if it comes up.

Closing the issue for now. Thanks for all the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generate A Weighted Random Number - javascript
This is my go-to "weighted" random, where I use an inverse function of "x" (where x is a random between min and max)...
Read more >
Creating a multi-select drop-down list?
I would like to create a multi-select drop-down list. As an example, please see this random example I found in the web:
Read more >
Create markers with HTML and CSS | Maps JavaScript API
Animated markers. This example creates the traditional "bounce-drop" animation using CSS and advanced markers. In the IntersectionObserver , it adds ...
Read more >
Drop Caps: Historical Use And Current Best Practices With ...
The initial cap (P in the word Petrus) contains a picture of St. Peter, and is thus historiated; it relates to the text...
Read more >
random-string-module-paul-bunker
random -string-module-paul-bunker. A module that returns alphanumeric strings. INSTALATION. npm install random-string-module-paul-bunker. IMPLEMENTATION.
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