This commit is contained in:
Patrick_Pluto 2024-09-25 16:34:02 +02:00
parent a6699924c8
commit 42b12f73b4
3 changed files with 20 additions and 1 deletions

10
py/tts.py Normal file
View file

@ -0,0 +1,10 @@
import pyttsx3
class TTS:
@staticmethod
def gen_tts(text):
engine = pyttsx3.init()
engine.setProperty('rate', 70)
engine.say(text)
engine.runAndWait()