[Update] Config Page: Transcription Tab. Add SelectedTranscriptionEngine.

This commit is contained in:
Sakamoto Shiina
2024-11-13 12:35:09 +09:00
parent 4db5306178
commit 9d620e9834
6 changed files with 64 additions and 4 deletions

View File

@@ -48,6 +48,7 @@ import {
useDeepLAuthKey,
useCTranslate2WeightTypeStatus,
useSelectedCTranslate2WeightType,
useSelectedTranscriptionEngine,
useSelectedWhisperWeightType,
useWhisperWeightTypeStatus,
useOverlaySettings,
@@ -129,6 +130,7 @@ export const useReceiveRoutes = () => {
downloadedCTranslate2WeightType,
} = useCTranslate2WeightTypeStatus();
const { updateSelectedTranscriptionEngine } = useSelectedTranscriptionEngine();
const { updateSelectedWhisperWeightType } = useSelectedWhisperWeightType();
const {
updateDownloadedWhisperWeightTypeStatus,
@@ -351,6 +353,9 @@ export const useReceiveRoutes = () => {
"/get/data/speaker_max_phrases": updateSpeakerMaxWords,
"/set/data/speaker_max_phrases": updateSpeakerMaxWords,
"/get/data/selected_transcription_engine": updateSelectedTranscriptionEngine,
"/set/data/selected_transcription_engine": updateSelectedTranscriptionEngine,
"/get/data/whisper_weight_type": updateSelectedWhisperWeightType,
"/set/data/whisper_weight_type": updateSelectedWhisperWeightType,