Spaces:
Sleeping
Sleeping
File size: 149 Bytes
aff0a09 |
1 2 3 4 5 6 7 |
import pyttsx3
def text_to_speech(text, audio_file_path):
engine = pyttsx3.init()
engine.save_to_file(text, audio_file_path)
engine.runAndWait()
|