SpeechToText-WebSockets-Javascript | SDK & Sample to do speech recognition | Speech library
kandi X-RAY | SpeechToText-WebSockets-Javascript Summary
kandi X-RAY | SpeechToText-WebSockets-Javascript Summary
SDK & Sample to do speech recognition using websockets in Javascript
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SpeechToText-WebSockets-Javascript
SpeechToText-WebSockets-Javascript Key Features
SpeechToText-WebSockets-Javascript Examples and Code Snippets
Community Discussions
Trending Discussions on SpeechToText-WebSockets-Javascript
QUESTION
I'm trying to get the Bing Speech API to work in C# via WebSockets. I've looked through the implementation in Javascript here and have been following the protocol instructions here, but I've come up against a complete brick wall. I can't use the existing C# service because I'm running in a Linux container, so I need to use an implementation on .net Core. Annoyingly, the existing service is closed-source!
I can connect to the web socket successfully, but I can't ever get the server to respond to my connection. I'm expecting to receive a turn.start
text message from the server, but I get booted off the server as soon as I've sent a few bytes of an audio file. I know the audio file is in the right format because I've got it directly from the C# service sample here.
I feel like I’ve exhausted the options here. The only thing I can think of now is that I’m not sending the audio chunks correctly. Currently, I’m just sending the audio file in consecutive 4096 bytes. I know the first audio message contains the RIFF header which is only 36 bytes, and then I'm just sending this along with the next (4096-36) bytes.
Here is my code in full. You should just be able to run it as a .net core or .net framework console application, and will need an audio file and an API key.
...ANSWER
Answered 2017-Aug-05 at 08:57I knew it was going to be simple.
After a frustrating few hours of coding, I've found the problem. I've been forgetting to send a request id
along with the speech.config
call.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SpeechToText-WebSockets-Javascript
An npm package of the Microsoft Speech Javascript Websocket SDK is available. To install the npm package run.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page