Skip to content

Commit 5cd3392

Browse files
committed
fix: adjust styles for audio chat mode and microphone button behavior
1 parent 06765ce commit 5cd3392

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

custom/ChatSurface.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@
119119
}"
120120
>
121121
<div
122-
class="w-full border rounded-lg pb-8 dark:bg-gray-700"
123-
:class="agentStore.isAudioChatMode ? 'border-none mt-8' : 'border'"
122+
class="w-full border rounded-lg pb-8"
123+
:class="agentStore.isAudioChatMode ? 'border-none mt-8' : 'border dark:bg-gray-700'"
124124
>
125125
<textarea
126126
v-if="!agentStore.isAudioChatMode"

custom/speech_recognition_frontend/MicrophoneButon.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ async function onStartRecording() {
9191
microphoneButtonMode.value = 'calibrating';
9292
await requestMicAndStartVAD(saidSomething, stopRecording, onAnySound);
9393
setTimeout(() => {
94-
microphoneButtonMode.value = 'listen';
95-
agentAudio.playBeep(1000);
94+
if (isAudioChatMode.value) {
95+
microphoneButtonMode.value = 'listen';
96+
agentAudio.playBeep(1000);
97+
}
9698
}, CALIBRATION_DURATION);
9799
}
98100

0 commit comments

Comments
 (0)