@adminforth/agent 1.42.0 → 1.42.2
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/build.log
CHANGED
|
@@ -58,5 +58,5 @@ custom/speech_recognition_frontend/voiceActivityDetection.ts
|
|
|
58
58
|
custom/speech_recognition_frontend/types/
|
|
59
59
|
custom/speech_recognition_frontend/types/voice-activity-detection.d.ts
|
|
60
60
|
|
|
61
|
-
sent 1,661,
|
|
62
|
-
total size is 1,657,
|
|
61
|
+
sent 1,661,049 bytes received 860 bytes 3,323,818.00 bytes/sec
|
|
62
|
+
total size is 1,657,187 speedup is 1.00
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="absolute bottom-2 flex items-center justify-center z-10 gap-4"
|
|
4
|
-
:class="[!agentStore.isAudioChatMode ? 'right-16': 'right-1/2 translate-x-1/2']"
|
|
4
|
+
:class="[!agentStore.isAudioChatMode ? 'right-16': agentStore.isMobile ? 'right-1/2 translate-x-1/2' : 'right-1/2 translate-x-3/4']"
|
|
5
5
|
>
|
|
6
6
|
<button
|
|
7
7
|
v-if="isAudioChatMode && microphoneButtonMode === 'generating'"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="absolute bottom-2 flex items-center justify-center z-10 gap-4"
|
|
4
|
-
:class="[!agentStore.isAudioChatMode ? 'right-16': 'right-1/2 translate-x-1/2']"
|
|
4
|
+
:class="[!agentStore.isAudioChatMode ? 'right-16': agentStore.isMobile ? 'right-1/2 translate-x-1/2' : 'right-1/2 translate-x-3/4']"
|
|
5
5
|
>
|
|
6
6
|
<button
|
|
7
7
|
v-if="isAudioChatMode && microphoneButtonMode === 'generating'"
|
package/dist/index.js
CHANGED
|
@@ -483,13 +483,13 @@ export default class AdminForthAgentPlugin extends AdminForthPlugin {
|
|
|
483
483
|
stream.audioStart(speech.mimeType, speech.format);
|
|
484
484
|
const reader = speech.audioStream.getReader();
|
|
485
485
|
const cancelAudioStream = () => {
|
|
486
|
-
void reader.cancel();
|
|
486
|
+
void reader.cancel().catch(() => undefined);
|
|
487
487
|
};
|
|
488
488
|
try {
|
|
489
489
|
abortSignal.addEventListener("abort", cancelAudioStream, { once: true });
|
|
490
490
|
while (true) {
|
|
491
491
|
if (abortSignal.aborted) {
|
|
492
|
-
yield reader.cancel();
|
|
492
|
+
yield reader.cancel().catch(() => undefined);
|
|
493
493
|
break;
|
|
494
494
|
}
|
|
495
495
|
const { value, done } = yield reader.read();
|
package/index.ts
CHANGED
|
@@ -551,7 +551,7 @@ export default class AdminForthAgentPlugin extends AdminForthPlugin {
|
|
|
551
551
|
|
|
552
552
|
const reader = speech.audioStream.getReader();
|
|
553
553
|
const cancelAudioStream = () => {
|
|
554
|
-
void reader.cancel();
|
|
554
|
+
void reader.cancel().catch(() => undefined);
|
|
555
555
|
};
|
|
556
556
|
|
|
557
557
|
try {
|
|
@@ -559,7 +559,7 @@ export default class AdminForthAgentPlugin extends AdminForthPlugin {
|
|
|
559
559
|
|
|
560
560
|
while (true) {
|
|
561
561
|
if (abortSignal.aborted) {
|
|
562
|
-
await reader.cancel();
|
|
562
|
+
await reader.cancel().catch(() => undefined);
|
|
563
563
|
break;
|
|
564
564
|
}
|
|
565
565
|
|