From 5f3f3afeb7b992444d68d140028ffef75d36ff1a Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Fri, 20 Oct 2023 17:29:36 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[bugfix]=20Model=20:=20print?= =?UTF-8?q?=E6=96=87=E5=89=8A=E9=99=A4/speaker=20energy=20=E3=81=AE?= =?UTF-8?q?=E3=82=A8=E3=83=A9=E3=83=BC=E7=99=BA=E7=94=9F=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model.py | 1 - models/transcription/transcription_recorder.py | 1 + models/translation/translation_translator.py | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) 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]