@adminforth/agent 2.7.3 → 2.7.4
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.
|
@@ -126,8 +126,10 @@ async function onStartRecording() {
|
|
|
126
126
|
agentAudio.playBeep(1000);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
function onStopRecording() {
|
|
130
|
-
|
|
129
|
+
function onStopRecording(playBeep = true) {
|
|
130
|
+
if (playBeep) {
|
|
131
|
+
agentAudio.playBeep(600);
|
|
132
|
+
}
|
|
131
133
|
stopUserMedia();
|
|
132
134
|
audioAmplitude.value = 0;
|
|
133
135
|
showAudioWavesAnimation.value = false;
|
|
@@ -180,7 +182,7 @@ async function sendRecordForTranscription() {
|
|
|
180
182
|
onBeforeUnmount(() => {
|
|
181
183
|
stopUserMedia();
|
|
182
184
|
agentStore.setIsAudioChatMode(false);
|
|
183
|
-
onStopRecording();
|
|
185
|
+
onStopRecording(false);
|
|
184
186
|
hideAnimationDebounced.cancel();
|
|
185
187
|
sendUserRecordDebounced.cancel();
|
|
186
188
|
});
|