Changed TTS language to French

This commit is contained in:
Nolan Mascrier 2025-03-07 11:34:20 +01:00 committed by GitHub
parent 2bed99a60f
commit 21825bb2d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ def play_audio(answer):
Args:
answer (string): Text that will be read"""
tts = gTTS(text=answer, lang='en')
tts = gTTS(text=answer, lang='fr')
filename = '/tmp/temp.mp3'
tts.save(filename)
music = pyglet.media.load(filename, streaming=False)