@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
package/dist/index.js
CHANGED
|
@@ -63282,6 +63282,9 @@ class AudioConcatProcessor extends AudioWorkletProcessor {
|
|
|
63282
63282
|
case "interrupt":
|
|
63283
63283
|
this.wasInterrupted = true;
|
|
63284
63284
|
break;
|
|
63285
|
+
case "resetInterrupt":
|
|
63286
|
+
this.wasInterrupted = false;
|
|
63287
|
+
break;
|
|
63285
63288
|
case "clearInterrupted":
|
|
63286
63289
|
if (this.wasInterrupted) {
|
|
63287
63290
|
this.wasInterrupted = false;
|
|
@@ -63584,6 +63587,7 @@ var VoiceAgent = class extends Agent {
|
|
|
63584
63587
|
*/
|
|
63585
63588
|
fadeOutAudio = (duration = 2) => {
|
|
63586
63589
|
if (!this.output) return;
|
|
63590
|
+
this.output.worklet.port.postMessage({ type: "resetInterrupt" });
|
|
63587
63591
|
const currentTime = this.output.context.currentTime;
|
|
63588
63592
|
this.output.gain.gain.exponentialRampToValueAtTime(
|
|
63589
63593
|
1e-4,
|