@rapidaai/react 1.1.53 → 1.1.54
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/{chunk-4RUIGDSN.mjs → chunk-U2JQCXY3.mjs} +5 -1
- package/dist/{chunk-4RUIGDSN.mjs.map → chunk-U2JQCXY3.mjs.map} +1 -1
- package/dist/components/device-selector.js +4 -0
- package/dist/components/device-selector.js.map +1 -1
- package/dist/components/device-selector.mjs +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -29442,6 +29442,9 @@ class AudioConcatProcessor extends AudioWorkletProcessor {
|
|
|
29442
29442
|
case "interrupt":
|
|
29443
29443
|
this.wasInterrupted = true;
|
|
29444
29444
|
break;
|
|
29445
|
+
case "resetInterrupt":
|
|
29446
|
+
this.wasInterrupted = false;
|
|
29447
|
+
break;
|
|
29445
29448
|
case "clearInterrupted":
|
|
29446
29449
|
if (this.wasInterrupted) {
|
|
29447
29450
|
this.wasInterrupted = false;
|
|
@@ -29744,6 +29747,7 @@ var VoiceAgent = class extends Agent {
|
|
|
29744
29747
|
*/
|
|
29745
29748
|
fadeOutAudio = (duration = 2) => {
|
|
29746
29749
|
if (!this.output) return;
|
|
29750
|
+
this.output.worklet.port.postMessage({ type: "resetInterrupt" });
|
|
29747
29751
|
const currentTime = this.output.context.currentTime;
|
|
29748
29752
|
this.output.gain.gain.exponentialRampToValueAtTime(
|
|
29749
29753
|
1e-4,
|