From f8ce0ee0e6c35e0aa10fd6d1c5aca3baf38233aa Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Sat, 14 Oct 2023 19:16:55 +0900 Subject: [PATCH] =?UTF-8?q?[Update]=20Config=20Window:=20Transcription?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=80=81Mic/Speaker=20Max=20Phrases=E3=81=AA?= =?UTF-8?q?=E3=81=A9=E3=81=AE=E6=95=B0=E5=80=A4=E5=85=A5=E5=8A=9B=E7=B3=BB?= =?UTF-8?q?=E3=81=AE=E8=AA=AC=E6=98=8E=E3=81=AB=E3=80=8C=E5=8D=98=E4=BD=8D?= =?UTF-8?q?=E3=80=8D=E3=82=92=E8=A1=A8=E8=A8=98=E3=80=82yml=E5=86=85?= =?UTF-8?q?=E3=81=AB=E8=BF=BD=E5=8A=A0=E3=81=95=E3=82=8C=E3=81=9F=E3=82=B3?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=82=A2=E3=82=A6=E3=83=88desc?= =?UTF-8?q?=E6=96=87=E7=AB=A0=E3=81=AF=E5=88=B6=E4=BD=9C=E4=B8=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en.yml | 7 +++++++ locales/ja.yml | 7 +++++++ view.py | 8 ++++---- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index d40a3e73..122b7edf 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -89,10 +89,15 @@ config_window: desc_for_manual: "Manually determine the microphone input sensitivity using the slider. Press the microphone icon to input your voice and adjust the sensitivity while monitoring the volume." mic_record_timeout: label: Mic Record Timeout + desc: (Second(s)) + # desc: Duration in seconds for detecting silence and determining the end of audio input. mic_phrase_timeout: label: Mic Phrase Timeout + desc: (Second(s)) + # desc: Duration in seconds for determining the end of audio input and transcribing it in one go. mic_max_phrase: label: Mic Max Phrases + # desc: Once the minimum word count for transcription is reached, it will be send. mic_word_filter: label: Mic Word Filter desc: "It will not send the sentence if the word(s) included in the set list of words.\nHow to set: e.g. AAA,BBB,CCC" @@ -106,8 +111,10 @@ config_window: desc_for_manual: "Manually determine the speaker input sensitivity using the slider. Press the headphones icon to listen to the audio and adjust the sensitivity while monitoring the volume." speaker_record_timeout: label: Speaker Record Timeout + desc: (Second(s)) speaker_phrase_timeout: label: Speaker Phrase Timeout + desc: (Second(s)) speaker_max_phrase: label: Speaker Max Phrases diff --git a/locales/ja.yml b/locales/ja.yml index 6f7c104c..9f4d3d74 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -89,10 +89,15 @@ config_window: desc_for_manual: スライダーを調整して入力感度を手動で決められます。マイクのアイコンを押すと、実際に声を入力し、音量を確認しながら調節できます。 mic_record_timeout: label: 入力が終了したとみなす無音時間 + desc: 単位は秒です。 + # desc: 無音を検出し、音声入力が終了したとみなす時間の長さです。(秒) mic_phrase_timeout: label: 一度に文字起こしする時間の長さ + desc: 単位は秒です。 + # desc: 一度に文字起こし処理をする音声時間の長さです。(秒) mic_max_phrase: label: 送信するまでに保持する単語数 + # desc: 文字起こしされた単語数を保持する最大値で、その数を超えると送信します。 mic_word_filter: label: ワードフィルター desc: "設定された単語を検出すると、その文章は送信されません。\n設定の例: AAA,BBB,CCC" @@ -106,8 +111,10 @@ config_window: desc_for_manual: スライダーを調整して入力感度を手動で決められます。ヘッドフォンのアイコンを押すと、実際に音声を聞き取り、音量を確認しながら調節できます。 speaker_record_timeout: label: 入力が終了したとみなす無音時間 + desc: 単位は秒です。 speaker_phrase_timeout: label: 一度に文字起こしする時間の長さ + desc: 単位は秒です。 speaker_max_phrase: label: ログとして表示するまでに保持する単語数 diff --git a/view.py b/view.py index 541c6b72..ba07425a 100644 --- a/view.py +++ b/view.py @@ -229,13 +229,13 @@ class View(): VAR_LABEL_MIC_RECORD_TIMEOUT=StringVar(value=i18n.t("config_window.mic_record_timeout.label")), - VAR_DESC_MIC_RECORD_TIMEOUT=None, + VAR_DESC_MIC_RECORD_TIMEOUT=StringVar(value=i18n.t("config_window.mic_record_timeout.desc")), CALLBACK_SET_MIC_RECORD_TIMEOUT=None, VAR_MIC_RECORD_TIMEOUT=StringVar(value=config.INPUT_MIC_RECORD_TIMEOUT), CALLBACK_FOCUS_OUT_MIC_RECORD_TIMEOUT=self.setLatestConfigVariable_MicRecordTimeout, VAR_LABEL_MIC_PHRASE_TIMEOUT=StringVar(value=i18n.t("config_window.mic_phrase_timeout.label")), - VAR_DESC_MIC_PHRASE_TIMEOUT=None, + VAR_DESC_MIC_PHRASE_TIMEOUT=StringVar(value=i18n.t("config_window.mic_phrase_timeout.desc")), CALLBACK_SET_MIC_PHRASE_TIMEOUT=None, VAR_MIC_PHRASE_TIMEOUT=StringVar(value=config.INPUT_MIC_PHRASE_TIMEOUT), CALLBACK_FOCUS_OUT_MIC_PHRASE_TIMEOUT=self.setLatestConfigVariable_MicPhraseTimeout, @@ -273,13 +273,13 @@ class View(): VAR_LABEL_SPEAKER_RECORD_TIMEOUT=StringVar(value=i18n.t("config_window.speaker_record_timeout.label")), - VAR_DESC_SPEAKER_RECORD_TIMEOUT=None, + VAR_DESC_SPEAKER_RECORD_TIMEOUT=StringVar(value=i18n.t("config_window.speaker_record_timeout.desc")), CALLBACK_SET_SPEAKER_RECORD_TIMEOUT=None, VAR_SPEAKER_RECORD_TIMEOUT=StringVar(value=config.INPUT_SPEAKER_RECORD_TIMEOUT), CALLBACK_FOCUS_OUT_SPEAKER_RECORD_TIMEOUT=self.setLatestConfigVariable_SpeakerRecordTimeout, VAR_LABEL_SPEAKER_PHRASE_TIMEOUT=StringVar(value=i18n.t("config_window.speaker_phrase_timeout.label")), - VAR_DESC_SPEAKER_PHRASE_TIMEOUT=None, + VAR_DESC_SPEAKER_PHRASE_TIMEOUT=StringVar(value=i18n.t("config_window.speaker_phrase_timeout.desc")), CALLBACK_SET_SPEAKER_PHRASE_TIMEOUT=None, VAR_SPEAKER_PHRASE_TIMEOUT=StringVar(value=config.INPUT_SPEAKER_PHRASE_TIMEOUT), CALLBACK_FOCUS_OUT_SPEAKER_PHRASE_TIMEOUT=self.setLatestConfigVariable_SpeakerPhraseTimeout,