fix : tts not working with web interface

This commit is contained in:
martin legrand
2025-05-03 19:22:01 +02:00
parent bddaa75e8c
commit 52e5af8116
5 changed files with 19 additions and 7 deletions
+2 -2
View File
@@ -173,10 +173,10 @@ if __name__ == "__main__":
tosay_fr = """
J'ai consulté les dernières nouvelles sur le site https://www.theguardian.com/world
"""
spk = Speech(enable=True, language="ja", voice_idx=2)
spk = Speech(enable=True, language="zh", voice_idx=0)
for i in range(0, 2):
print(f"Speaking chinese with voice {i}")
spk.speak(tosay_ja, voice_idx=i)
spk.speak(tosay_zh, voice_idx=i)
spk = Speech(enable=True, language="en", voice_idx=2)
for i in range(0, 5):
print(f"Speaking english with voice {i}")