Merge branch 'model' into UI_2.0

This commit is contained in:
misyaguziya
2023-10-20 17:29:49 +09:00
3 changed files with 1 additions and 2 deletions

View File

@@ -139,7 +139,6 @@ class Model:
return engine_name
def getInputTranslate(self, message):
print(config.CHOICE_TRANSLATOR, config.AUTH_KEYS)
if config.CHOICE_TRANSLATOR == "DeepL_API":
if config.TARGET_LANGUAGE == "English":
if config.TARGET_COUNTRY in ["United States", "Canada", "Philippines"]:

View File

@@ -84,6 +84,7 @@ class SelectedSpeakeEnergyRecorder(BaseEnergyRecorder):
source = Microphone(speaker=True,
device_index= device["index"],
sample_rate=int(device["defaultSampleRate"]),
channels=device["maxInputChannels"]
)
super().__init__(source=source)
# self.adjustForNoise()

View File

@@ -21,7 +21,6 @@ class Translator():
return result
def translate(self, translator_name, source_language, target_language, message):
print(translator_name, source_language, target_language, message)
try:
result = ""
source_language=translation_lang[translator_name]["source"][source_language]