@@ -140,8 +140,7 @@ describe('speech_to_text_integration', function() {
140140 const speech_to_text_env = new watson . SpeechToTextV1 ( { } ) ;
141141 const recognizeStream = speech_to_text_env . recognizeUsingWebSocket ( ) ;
142142 recognizeStream . setEncoding ( 'utf8' ) ;
143- fs
144- . createReadStream ( path . join ( __dirname , '../resources/weather.flac' ) )
143+ fs . createReadStream ( path . join ( __dirname , '../resources/weather.flac' ) )
145144 . pipe ( recognizeStream )
146145 . on ( 'error' , done )
147146 . pipe (
@@ -170,8 +169,7 @@ describe('speech_to_text_integration', function() {
170169 const speech_to_text_vcap = new watson . SpeechToTextV1 ( { } ) ;
171170 const recognizeStream = speech_to_text_vcap . recognizeUsingWebSocket ( ) ;
172171 recognizeStream . setEncoding ( 'utf8' ) ;
173- fs
174- . createReadStream ( path . join ( __dirname , '../resources/weather.flac' ) )
172+ fs . createReadStream ( path . join ( __dirname , '../resources/weather.flac' ) )
175173 . pipe ( recognizeStream )
176174 . on ( 'error' , done )
177175 . pipe (
@@ -191,8 +189,7 @@ describe('speech_to_text_integration', function() {
191189 it ( 'transcribes audio over a websocket @slow' , function ( done ) {
192190 const recognizeStream = speech_to_text_rc . recognizeUsingWebSocket ( ) ;
193191 recognizeStream . setEncoding ( 'utf8' ) ;
194- fs
195- . createReadStream ( path . join ( __dirname , '../resources/weather.flac' ) )
192+ fs . createReadStream ( path . join ( __dirname , '../resources/weather.flac' ) )
196193 . pipe ( recognizeStream )
197194 . on ( 'error' , done )
198195 . pipe (
@@ -212,8 +209,7 @@ describe('speech_to_text_integration', function() {
212209 it ( 'transcribes audio over a websocket @slow' , function ( done ) {
213210 const recognizeStream = speech_to_text . recognizeUsingWebSocket ( ) ;
214211 recognizeStream . setEncoding ( 'utf8' ) ;
215- fs
216- . createReadStream ( path . join ( __dirname , '../resources/weather.flac' ) )
212+ fs . createReadStream ( path . join ( __dirname , '../resources/weather.flac' ) )
217213 . pipe ( recognizeStream )
218214 . on ( 'error' , done )
219215 . pipe (
@@ -233,8 +229,7 @@ describe('speech_to_text_integration', function() {
233229 content_type : 'audio/l16; rate=44100' ,
234230 } ) ;
235231 recognizeStream . setEncoding ( 'utf8' ) ;
236- fs
237- . createReadStream ( path . join ( __dirname , '../resources/blank.wav' ) )
232+ fs . createReadStream ( path . join ( __dirname , '../resources/blank.wav' ) )
238233 . pipe ( recognizeStream )
239234 . on ( 'error' , done )
240235 . on ( 'data' , function ( text ) {
0 commit comments