Skip to content

Commit

Permalink
switching to recognizeUsingWebSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
jweisz committed Oct 9, 2018
1 parent b34836a commit 52c74a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tjbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,10 @@ TJBot.prototype.listen = function(callback) {
params.inactivity_timeout = this.configuration.listen.inactivityTimeout;
}

winston.silly('createRecognizeStream() params:');
winston.silly('recognizeUsingWebSocket() params:');
winston.silly(params);

this._recognizeStream = this._stt.createRecognizeStream(params);
this._recognizeStream = this._stt.recognizeUsingWebSocket(params);

// create the mic -> STT recognizer -> text stream
this._sttTextStream = this._micInputStream.pipe(this._recognizeStream);
Expand Down

0 comments on commit 52c74a1

Please sign in to comment.