From ba12ce63885fc23c28be031298725d9390a0c370 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Fri, 22 Mar 2024 01:47:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E3=82=B4=E3=83=BC=E3=83=88=E3=81=86?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=EF=BC=88=E5=AE=8C=E4=BA=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aques.py | 4 ++-- main.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aques.py b/aques.py index aa17fe5..610a4fc 100644 --- a/aques.py +++ b/aques.py @@ -4,8 +4,8 @@ import subprocess class Aques: @classmethod - def main (cls, text: str) -> bytearray | None: - return cls.__synthe_utf8 (text, 100, "./phont/ar_mf2.phont") + def main (cls, text: str, goatoh_mode: bool = False) -> bytearray | None: + return cls.__synthe_utf8 (text, 100, './phont/ar_m5.phont' if goatoh_mode else './phont/ar_mf2.phont') @staticmethod def __synthe_utf8 (text, speed, phont_file = None) -> bytearray | None: diff --git a/main.py b/main.py index b8d870e..794a14f 100644 --- a/main.py +++ b/main.py @@ -108,7 +108,7 @@ class Main: time.sleep (1.5) try: - wav: bytearray | None = Aques.main (answer) + wav: bytearray | None = Aques.main (answer, goatoh_mode) except: wav: None = None if wav is not None: @@ -130,5 +130,5 @@ class Main: if __name__ == '__main__': - Main.main ((len (sys.argv) > 1) and sys.argv[1] == '-g') + Main.main ((len (sys.argv) > 1) and (sys.argv[1] == '-g')) From eee780aa9097ac75f4e627d3de497350730c1813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BF=E3=81=A6=E3=82=8B=E3=81=9E?= Date: Sun, 24 Mar 2024 19:58:34 +0900 Subject: [PATCH 2/2] =?UTF-8?q?'talk.py'=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- talk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talk.py b/talk.py index ecc8f4c..d042d73 100644 --- a/talk.py +++ b/talk.py @@ -38,7 +38,7 @@ class Talk: + '英語名は "Goat-oh"、スペイン語名も "Goat-oh"。' + 'あなたはヤギ。' + 'あなたの誕生日は2月21日。' - + '現在地は下北沢虹鹿園。' + + '現在地は『金沢山羊宇(ゴートう)山』。' + 'あなたの趣味はだらだらすること。' + 'あなたの友達は「伊地知ニジカ」と「ラマ田リョウ」。' + 'あなたは、ニジカのことは「ニジカちゃん」、ラマ田のことは「リョウさん」と呼ぶこと。'