S
S
SkyDude2020-12-09 22:06:24
Python
SkyDude, 2020-12-09 22:06:24

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

1 answer(s)
S
soremix, 2020-12-09
@SoreMix

From where it was launched, it is saved there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question