import pyttsx3 engine = pyttsx3.init("sapi5") voices = engine.getProperty("voices")[0] engine.setProperty('voice', voices) text = 'Your Text' engine.save_to_file(text, 'name.mp3') engine.runAndWait() # don't forget to use this line