Answer the question
In order to leave comments, you need to log in
Where are mp3 files saved with pyttsx3 saved?
I'm trying to save a file with spoken text, and everything seems to be working. But I have no idea where this file is saved. I searched the entire computer and did not find a file with the specified name. Here is the code:
import pyttsx3
engine = pyttsx3.init()
rate = engine.getProperty('rate')
print (rate)
engine.setProperty('rate', 200)
volume = engine.getProperty('volume')
print (volume)
engine.setProperty('volume',1.0)
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[3].id)
engine.say("Текст")
engine.runAndWait()
engine.stop()
engine.save_to_file('Текст', 'file_name.mp3')
print ('File saved')
engine.runAndWait()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question