interstellar_ai/py/tts.py
Patrick_Pluto 42b12f73b4 TTS
2024-09-25 16:34:02 +02:00

10 lines
193 B
Python

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