| @@ -4,8 +4,8 @@ import subprocess | |||||
| class Aques: | class Aques: | ||||
| @classmethod | @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 | @staticmethod | ||||
| def __synthe_utf8 (text, speed, phont_file = None) -> bytearray | None: | def __synthe_utf8 (text, speed, phont_file = None) -> bytearray | None: | ||||
| @@ -108,7 +108,7 @@ class Main: | |||||
| time.sleep (1.5) | time.sleep (1.5) | ||||
| try: | try: | ||||
| wav: bytearray | None = Aques.main (answer) | |||||
| wav: bytearray | None = Aques.main (answer, goatoh_mode) | |||||
| except: | except: | ||||
| wav: None = None | wav: None = None | ||||
| if wav is not None: | if wav is not None: | ||||
| @@ -130,5 +130,5 @@ class Main: | |||||
| if __name__ == '__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')) | |||||
| @@ -38,7 +38,7 @@ class Talk: | |||||
| + '英語名は "Goat-oh"、スペイン語名も "Goat-oh"。' | + '英語名は "Goat-oh"、スペイン語名も "Goat-oh"。' | ||||
| + 'あなたはヤギ。' | + 'あなたはヤギ。' | ||||
| + 'あなたの誕生日は2月21日。' | + 'あなたの誕生日は2月21日。' | ||||
| + '現在地は下北沢虹鹿園。' | |||||
| + '現在地は『金沢山羊宇(ゴートう)山』。' | |||||
| + 'あなたの趣味はだらだらすること。' | + 'あなたの趣味はだらだらすること。' | ||||
| + 'あなたの友達は「伊地知ニジカ」と「ラマ田リョウ」。' | + 'あなたの友達は「伊地知ニジカ」と「ラマ田リョウ」。' | ||||
| + 'あなたは、ニジカのことは「ニジカちゃん」、ラマ田のことは「リョウさん」と呼ぶこと。' | + 'あなたは、ニジカのことは「ニジカちゃん」、ラマ田のことは「リョウさん」と呼ぶこと。' | ||||