nateshmbhat / pyttsx3

Offline Text To Speech synthesis for python
Mozilla Public License 2.0
2.12k stars 332 forks source link

Can it be saved into MP3 or opus #81

Closed byteshiva closed 4 years ago

byteshiva commented 4 years ago

Can the output of tts be saved into MP3 or opus format?

josephalway commented 4 years ago

The output format is dependent on the speech engine used. For example, the Windows output format is WAV. Conversion would be necessary to get an MP3 file.

Windows uses sapi5, Apple uses nsss, and Linux uses espeak.

Currently, the save_to_file function in pyttsx3 hasn't been implemented for Linux/espeak.

nateshmbhat commented 4 years ago

see #76 for more info