TTS
This commit is contained in:
parent
a6699924c8
commit
42b12f73b4
3 changed files with 20 additions and 1 deletions
10
py/tts.py
Normal file
10
py/tts.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue