[Update] Config Window: Transcription (Speaker) Tab. Add Select Speaker Devices.

This commit is contained in:
Sakamoto Shiina
2024-04-07 11:56:39 +09:00
parent a9d0ca531e
commit 406d846b6b
6 changed files with 67 additions and 1 deletions

View File

@@ -704,6 +704,13 @@ def callbackDeleteMicWordFilter(value):
print("There was no the target word in config.INPUT_MIC_WORD_FILTER")
# Transcription (Speaker)
def callbackSetSpeakerDevice(value):
print("callbackSetSpeakerDevice", value)
config.CHOICE_SPEAKER_DEVICE = value
model.stopCheckSpeakerEnergy()
view.replaceSpeakerThresholdCheckButton_Passive()
def callbackSetSpeakerEnergyThreshold(value):
print("callbackSetSpeakerEnergyThreshold", value)
if value == "":
@@ -1046,6 +1053,8 @@ def createMainWindow(splash):
"callback_delete_mic_word_filter": callbackDeleteMicWordFilter,
# Transcription Tab (Speaker)
"callback_set_speaker_device": callbackSetSpeakerDevice,
"list_speaker_device": model.getListOutputDevice(),
"callback_set_speaker_energy_threshold": callbackSetSpeakerEnergyThreshold,
"callback_set_speaker_dynamic_energy_threshold": callbackSetSpeakerDynamicEnergyThreshold,
"callback_check_speaker_threshold": callbackCheckSpeakerThreshold,