sageTheDM
91353bd051
Reviewed-on: https://interstellardevelopment.org/code/code/React-Group/interstellar_ai/pulls/137 Reviewed-by: Patrick <patrick_pluto@noreply.localhost> Co-authored-by: sageTheDM <info@photofuel.tech> Co-committed-by: sageTheDM <info@photofuel.tech>
9 lines
192 B
Python
9 lines
192 B
Python
import pyttsx3
|
|
|
|
class TTS:
|
|
@staticmethod
|
|
def gen_tts(text):
|
|
engine = pyttsx3.init()
|
|
engine.setProperty('rate', 70)
|
|
engine.say(text)
|
|
engine.runAndWait()
|