File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ const synthesizeStream = textToSpeech.synthesizeUsingWebSocket(params);
2222// the output of the stream can be piped to any writable stream, like an audio file
2323synthesizeStream . pipe ( fs . createWriteStream ( './speech.ogg' ) ) ;
2424
25+ // !!!!! IMPORTANT !!!!!
2526// if the stream is not being piped anywhere and is only being listened to, the stream needs
26- // to be explicitly set to flowing mode:
27+ // to be explicitly set to flowing mode by uncommenting the following line :
2728
2829// synthesizeStream.resume();
2930
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ class SynthesizeStream extends Readable {
9999 const url =
100100 ( options . url || 'wss://stream.watsonplatform.net/text-to-speech/api' )
101101 . replace ( / ^ h t t p / , 'ws' ) +
102- '/v1/synthesize' +
102+ '/v1/synthesize? ' +
103103 queryString ;
104104
105105 const socket = ( this . socket = new w3cWebSocket (
You can’t perform that action at this time.
0 commit comments