nateshmbhat / pyttsx3

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

[Question] Save speech to bytes #268

Open egorgam opened 1 year ago

egorgam commented 1 year ago

Is there any way to don't save generated speech to file, but store it in variable (simply in bytes) like in gTTS?

Jiangshan00001 commented 1 year ago

is there any work around it?

Jiangshan00001 commented 1 year ago

i checked the PR, and find one code, and merged to this:

https://github.com/Jiangshan00001/pyttsx4

using

pip install pyttsx4

for using it.

import pyttsx4
engine = pyttsx4.init()

no conflit with the pyttsx3 package.