Skip to content

Commit

Permalink
finalize tts streaming commands: sendTtsTokens, flushTtsTokens, clear…
Browse files Browse the repository at this point in the history
…TtsTokens
  • Loading branch information
davehorton committed Dec 9, 2024
1 parent a90af50 commit 8325a9b
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 8325a9b

Please sign in to comment.