title: Speech to text bing speech API Azure
body: <p>When I trying to execute the code below, I get the following error:</p>
  
  <p><strong>(node:3784) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Voice recognition failed miserably: socket hang up</strong></p>
  
  <pre><code>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 =&gt; console.log(response.results[0].name));
  </code></pre>
  
  <p>Please help me.</p>