Wątek: Is There A Cross Platform Module In Python For Text To Speach?
Wróć do listy wątków1 z 1
1 z 15: GraceDontmindbeingblind
Basically, I was wondering if there is tts in Python that works with all platforms.
Grace.
18.10.2022 03:55
2 z 15: Seedy-Threepio
Try the accessible-output2 library.
18.10.2022 04:58
3 z 15: bomberman29
accessible_output2 for screenreaders and sapi. but there is also gtts. (google tts).
my github: https://github.com/denizsincar29
18.10.2022 07:45
4 z 15: GraceDontmindbeingblind
Thank you. Whair would I find documentation to make it speak?
Grace.
18.10.2022 19:46
5 z 15: nikolai
I couldn't find any docs for it besides basic functionality which is really bad in my opinion. Even the readme.md on github was basically the same as the description in pypi.
Here is the code to initialize it though.
import accessible_output2.outputs.auto
o=accessible_output2.outputs.auto.Auto()
#o.speak("Testface")
If this is the package you want to be using, I'd take a look at it's source files to make sure you arn't missing stuff.
The Program comes for us all.
https://programaudioseries.com/
18.10.2022 22:40
6 z 15: Seedy-Threepio
Basic docs? What do you want to do with it besides producing speech (and maybe braille) output?
22.10.2022 07:03
7 z 15: GraceDontmindbeingblind
I need it to give speach and speak a variable
Grace.
22.10.2022 16:50
8 z 15: zywek
accessibleoutputs2 does not support linux now. It wants to install espeak module which is not available in python3 version. Remake it to use speechd instead of espeak.
23.10.2022 20:43
9 z 15: bomberman29
hmmmmmm. why espeak? espeak is very bad for selfvoiced apps and games.
my github: https://github.com/denizsincar29
25.10.2022 12:52
10 z 15: zywek
Look at the code, so you will know why espeak. You want to use another synthesizer? Write module for it and use.
25.10.2022 13:06
11 z 15: GraceDontmindbeingblind
well, I need something that is going to work on all platforms correctly, so that is a problem
Grace.
25.10.2022 18:06
12 z 15: zywek
So get ao2 from my github
https://github.com/zywek123/accessible_output2
It should work with speech dispatcher, but voice selection is not pssible now.
25.10.2022 21:17
13 z 15: nikolai
Or just write a wrapper module that you can adapt for each platform.
The Program comes for us all.
https://programaudioseries.com/
25.10.2022 21:23
14 z 15: destructatron
I use plain old accessible_output2 from pip and stick it in a virtual environment. Then, I cd into /usr/lib/python3.10/site-packages and copy the speechd packages to the site packages directory of the virtual environment.
27.10.2022 16:02
15 z 15: zywek
But speechd is not implemented in old versions of ao3, tere's e_speak which was available in python2
27.10.2022 20:05