You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importpyttsx3engine=pyttsx3.init()
engine.save_to_file('I will speak this text', './test.mp3')
engine.runAndWait()
Issue
The save_to_file function only produces aiff files regardless of the file extension.
The file extension of the generated audio will respect the user's input, but the actual format will still be aiff.
For example, I did engine.save_to_file('I will speak this text', './test.wav'), which produced the test.wav file. However, checking the audio file with ffprobe shows that the format is actually aiff.
In addition, if the specified file extension is mp3, the program will freeze and not do anything.
I haven't tested other audio formats, and I haven't tested this on other OS.
The text was updated successfully, but these errors were encountered:
Environment
Code
Here is the code to reproduce the issue:
Issue
The
save_to_file
function only producesaiff
files regardless of the file extension.The file extension of the generated audio will respect the user's input, but the actual format will still be
aiff
.For example, I did
engine.save_to_file('I will speak this text', './test.wav')
, which produced thetest.wav
file. However, checking the audio file with ffprobe shows that the format is actually aiff.In addition, if the specified file extension is mp3, the program will freeze and not do anything.
I haven't tested other audio formats, and I haven't tested this on other OS.
The text was updated successfully, but these errors were encountered: