Unity-MS-SpeechSDK
Unity-MS-SpeechSDK copied to clipboard
TooManyRequests on second time calling StartSpeechRecognitionFromMicrophone()
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.