microsoft / cognitive-services-speech-sdk-js

Microsoft Azure Cognitive Services Speech SDK for JavaScript
Other
268 stars 100 forks source link

[Bug]: Websocket message size cannot exceed 65536 bytes websocket error code: 1007 #840

Open orgads opened 4 months ago

orgads commented 4 months ago

What happened?

While running startContinuousRecognitionAsync, we received the following error:

Websocket message size cannot exceed 65536 bytes websocket error code: 1007

This looks similar to one of the bugfixes in the release notes for 1.38, but I couldn't find any relevant change in the Node SDK, and the note also relates to Start/StopKeywordRecognition.

Version

1.34.0

What browser/platform are you seeing the problem on?

Node

Relevant log output

No response

orgads commented 3 months ago

This happens when we pass a huge phrase list. Is there a way to workaround it?

rhurey commented 3 months ago

The bug fix in 1.38 around large WebSocket messages dealt with the native SDK's when a long keyword phrase was spotted on the edge device and the way the audio was replayed to the service.

In this case, they phrase list is sent in one WebSocket message, and the service is configured to accept < 64K messages.

How many phrases are in the phrase list?

orgads commented 3 months ago

I don't know for sure, in my logs there are about 900, but the log is incomplete. I can try to ask the customer.