(speech_to_text.createRecognizeStream({ content_type: 'audio/l16; rate=44100' }))
  .pipe(fs.createWriteStream('./transcription.txt'));</code></pre><h3>Text to Speech</h3><p>Use the <a href="http://www.ibm.com/watson/developercloud/doc/text-to-speech/">Text to Speech</a> service to synthesize text into a
.wav file.</p>
<pre class="prettyprint source lang-js"><code>var watson = require('watson-developer-cloud');
var fs = require('fs');

var text_to_speech = watson.text_to_speech({
  username: '&lt;username>'