Open vaibhavpancholi1 opened 7 years ago
If this is your real Bing subscription key you should remove it! There are also other problems with your code, e.g. spaces in x - requestid which should be x-requestid, sending audio without headers, etc.
The Speech Recognition API docs can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/speech/api-reference-rest/websocketprotocol
i am trying below code. After opening i am sending audio but its failing .sent is coming false for audio.
how should i send it?
requirement is something like
using (var ws = new WebSocket(endpoint + "? format=Simple&language=en-US&Ocp-Apim-Subscription-Key=b37f5197677246609e15a445d7232d4a&X-ConnectionId=57AB5DB821D444EEA1A4C54FF8469A8A")) { ws.CustomHeaders = new Dictionary<string, string>() { { authInfo.HeaderName,authInfo.Token }, {ConnectionIdHeader,"57AB5DB821D444EEA1A4C54FF8469A8A" } }; ws.Origin = "https://speech.platform.bing.com"; ws.OnMessage += (sender, e) => {