Skip to content

Commit

Permalink
Merge pull request #26 from jambonz/feat/tts-streaming-2
Browse files Browse the repository at this point in the history
finalize tts streaming commands: sendTtsTokens, flushTtsTokens, clear…
  • Loading branch information
davehorton authored Dec 9, 2024
2 parents a90af50 + 8325a9b commit dc672cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,14 @@ class Session extends Emitter {
return p;
}

sendTtsFlush(data) {
clearTtsTokens(data) {
this.queuedTtsTokens = [];
this._ttsPaused = false;
debug('clearTtsTokens: sending tts:clear');
return this.sendCommand('tts:clear', data);
}

flushTtsFlush(data) {
debug('sendTtsFlush: sending tts:flush');
return this.sendCommand('tts:flush', data);
}
Expand Down

0 comments on commit dc672cf

Please sign in to comment.