[Update] Config Page: Device Tab. Add threshold slider functionally.

This commit is contained in:
Sakamoto Shiina
2024-09-09 20:09:32 +09:00
parent 1f172c8127
commit 49bb7d7c5f
6 changed files with 96 additions and 20 deletions

View File

@@ -29,6 +29,8 @@ export const useReceiveRoutes = () => {
updateEnableAutoClearMessageBox,
updateSendMessageButtonType,
updateMicThreshold,
updateSpeakerThreshold,
} = useConfig();
const { updateVolumeVariable_Mic, updateVolumeVariable_Speaker } = useVolume();
@@ -66,6 +68,9 @@ export const useReceiveRoutes = () => {
"/config/send_message_button_type": updateSendMessageButtonType,
"/controller/callback_set_send_message_button_type": updateSendMessageButtonType,
"/controller/callback_set_mic_energy_threshold": updateMicThreshold,
"/controller/callback_set_speaker_energy_threshold": updateSpeakerThreshold,
"/controller/callback_messagebox_send": updateSentMessageLog,
"/action/transcription_send_mic_message": addSentMessageLog,