diff --git a/model.py b/model.py index 8d0f0083..f084a27c 100644 --- a/model.py +++ b/model.py @@ -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"]: diff --git a/models/transcription/transcription_recorder.py b/models/transcription/transcription_recorder.py index 4e46cfc7..9abe5eb4 100644 --- a/models/transcription/transcription_recorder.py +++ b/models/transcription/transcription_recorder.py @@ -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() \ No newline at end of file diff --git a/models/translation/translation_translator.py b/models/translation/translation_translator.py index 81bd0ef5..ba4a36d6 100644 --- a/models/translation/translation_translator.py +++ b/models/translation/translation_translator.py @@ -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]