When I trying to execute the code below, I get the following error:
(node:3784) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Voice recognition failed miserably: socket hang up
var fs = require('fs');
var bing = require('bingspeech-api-client');
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));
Please help me.