);
    console.log('First document: ' + JSON.stringify(searchResponse.response.docs[0], null, 2));
  }
});</code></pre><h3>Speech to Text</h3><p>Use the <a href="http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/speech-to-text/">Speech to Text</a> service to recognize the text from a
.wav file.</p>
<pre class="prettyprint source lang-javascript"><code>var watson = require('watson-developer-cloud');
var fs = require('fs');

var speech_to_text = watson.speech_to_text({
  username: '&lt;usern