nateshmbhat / pyttsx3

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

Tone #272

Open RonnyG2121 opened 1 year ago

RonnyG2121 commented 1 year ago

hello. Will it be possible to get and set the pitch of the voice in this library? I was thinking of building a text-to-speech program, but you won't be able to change the pitch of the voices. Only that is missing from the library and it will be great! thanks

Jiangshan00001 commented 1 year ago

actually pitch is support with espeak engine. use getProperty & setProperty.

RonnyG2121 commented 1 year ago

I'm using sapi

El vie., 14 abr. 2023 2:39 a. m., Jiangshan00001 @.***> escribió:

actually pitch is support with espeak engine. use getProperty & setProperty.

— Reply to this email directly, view it on GitHub https://github.com/nateshmbhat/pyttsx3/issues/272#issuecomment-1507770321, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3TLQZTJPFAVZ4W3UXZATETXBCMCLANCNFSM6AAAAAAW5RNYAI . You are receiving this because you authored the thread.Message ID: @.***>

Jiangshan00001 commented 1 year ago

i added a pith support for sapi5 here. it is not test yet. you can have a try and tell me the result if you like. thanks.

https://github.com/Jiangshan00001/pyttsx4 pip install pyttsx4 version: 3.0.7

how to use: setProperty('pitch', val)

range of val is from -10 to +10 integer.

RonnyG2121 commented 1 year ago

Thanks friend. I will tested.

El vie., 14 abr. 2023 7:29 a. m., Jiangshan00001 @.***> escribió:

i added a pith support for sapi5 here. it is not test yet. you can have a try and tell me the result if you like. thanks.

https://github.com/Jiangshan00001/pyttsx4 pip install pyttsx4 version: 3.0.7

how to use: setProperty('pitch', val)

range of val is from -10 to +10 integer.

— Reply to this email directly, view it on GitHub https://github.com/nateshmbhat/pyttsx3/issues/272#issuecomment-1507943962, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3TLQZRIVIUU4SBVNMIVU6LXBDOCZANCNFSM6AAAAAAW5RNYAI . You are receiving this because you authored the thread.Message ID: @.***>

willwade commented 3 weeks ago

I’ll check this. But I’m pretty sure this should work.

edit - to-do on sapi. i think we can do something better in sapi - like get and set property on a range of missing features. then again i think we should just skip this and do ssml support..