ゴートう追加(完了)

このコミットが含まれているのは:
2024-03-22 01:47:26 +09:00
コミット ba12ce6388
2個のファイルの変更4行の追加4行の削除
+2 -2
ファイルの表示
@@ -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:
+2 -2
ファイルの表示
@@ -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'))