RapidWareTech / pyttsx

Cross-platform text-to-speech wrapper
Other
370 stars 134 forks source link

Voice change male to female #53

Open vubon opened 7 years ago

vubon commented 7 years ago

Hello I am newbie for this module . I want to change the voice male to female but I can't please check my code and late me know . import pyttsx engine = pyttsx.init() voices = engine.getProperty('voices') rate = engine.getProperty('rate') for voice in voices: print(voice.gender) engine.setProperty('voice', voice.id) engine.say("This is testing") I checked my terminal . I saw all voices are male , there is no female voice .. and also suggest me if I can add custom voice . Thanks

spreadred commented 7 years ago

Looks like linux doesn't have any: https://github.com/RapidWareTech/pyttsx/issues/51 although a user in suggests you can simulate a female voice

Julian-O commented 7 years ago

Pyttsx doesn't do the text-to-speech itself. It just wraps the underlying Linux text-to-speech engine. So, it isn't pyttsx's fault.