opencode-interrupt-plugin 0.4.8 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tts/index.js +4 -0
- package/package.json +1 -1
package/dist/tts/index.js
CHANGED
|
@@ -138,6 +138,10 @@ export class TTSStreamer extends EventEmitter {
|
|
|
138
138
|
}
|
|
139
139
|
async processQueue() {
|
|
140
140
|
this.processing = true;
|
|
141
|
+
if (this.stopped) {
|
|
142
|
+
debug(`[interrupt-tts] processQueue clearing stale stopped flag`);
|
|
143
|
+
this.stopped = false;
|
|
144
|
+
}
|
|
141
145
|
debug(`[interrupt-tts] processQueue start, queue=${this.queue.length}, stopped=${this.stopped}`);
|
|
142
146
|
while (this.queue.length > 0 && !this.stopped) {
|
|
143
147
|
const sentence = this.queue.shift();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-interrupt-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "Streaming TTS + voice interruption for OpenCode. Speaks responses as they arrive and detects when you talk over it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|