palmerabollo / bingspeech-api-client

Microsoft Bing Speech API client in node.js
Other
32 stars 17 forks source link

When I'm trying to execute this code its giving error like #11

Closed adhit159 closed 7 years ago

adhit159 commented 7 years ago

down vote favorite When I'm trying to execute this code its giving error like

(node:3784) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec tion id: 1): Error: Voice recognition failed miserably: socket hang up

var fs = require('fs'); var bing = require('C:\Program Files\nodejs\node_modules\bingspeech-api-client\lib\client.js');

var audioStream = fs.createReadStream('d:\node.wav');

var subscriptionKey = 'xxxxxxxxxxxxxxxxx';

var client = new bing.BingSpeechClient(subscriptionKey); client.recognizeStream(audioStream) .then(response => console.log(response.results[0].name));

http://stackoverflow.com/questions/42570738/speech-to-text-bing-speech-api-azure

palmerabollo commented 7 years ago

@adhit159 Works for me and for some other users, too. Are you still facing this issue? Reopen if needed.

concordion2k commented 7 years ago

Does this library use WebSockets?

palmerabollo commented 7 years ago

No. It uses tradicional HTTP requests.