Unity-MS-SpeechSDK icon indicating copy to clipboard operation
Unity-MS-SpeechSDK copied to clipboard

TooManyRequests on second time calling StartSpeechRecognitionFromMicrophone()

Open andymule opened this issue 4 years ago • 0 comments

I can't find the root cause, but when you try to record a second time using StartSpeechRecognitionFromMicrophone(), you seem to send a lingering Start request with the previous request's id, followed immeditely by a new request. The server sees two simultaneous requests and returns TooMany Requests.

Closing WebSocket with Status: Validation failed with status: TooManyRequests
UnityEngine.Debug:Log(Object)

The code isn't running twice, and the async nature makes this pretty hard to debug.

Separately, StartRecording and StartSpeechRecognitionFromFile works fine forever.

andymule avatar May 21 '20 21:05 andymule