the code is mostly from pyttsx3.
only because the repo pyttsx3 does not update for years and some new feature i want is not here, i cloned this repo.
the changelog:
- add memory support for sapi5
- add memory support for espeak(espeak is not tested). eg:
b = BytesIO()
engine.save_to_file('i am Hello World', b)
engine.runAndWait()
-
fix VoiceAge key error
-
fix for sapi save_to_file when it run on machine without outputsream device.
-
fix save_to_file does not work on mac os ventura error. --3.0.6
-
add pitch support for sapi5(not tested yet). --3.0.8
-
fix nsss engine: Import super from objc to fix AttributeError by @matt-oakes.
-
add tts support: deep-learning text to voice backend:
just say:
engine = pyttsx4.init('coqui_ai_tts')
engine.say('this is an english text to voice test.')
engine.runAndWait()
cloning someones voice:
engine = pyttsx4.init('coqui_ai_tts')
engine.setProperty('speaker_wav', './someones_voice.wav')
engine.say('this is an english text to voice test.')
engine.runAndWait()
demo output: