sukiletxe / vbns-ao2

a vbns emulator (modified from vbns-espeak) which uses accessible_output2
2 stars 4 forks source link

Getting this working with Python 3 #5

Open arfy8820 opened 7 months ago

arfy8820 commented 7 months ago

Pretty simple, I notice that this code was written for, and only seems to work with python2. Have you thought about updating it to work with python 3? I've been doing some tweaking of the code, and think I'd be able to get this working. However, I'm unsure of a couple of points.

Other than those points, I'd be glad to help out and get this code working on a more modern python.

sukiletxe commented 7 months ago

Hello,

Thanks for your interest! I haven't updated this project for a long time, mainly because it is quite a mess (back then I had no idea how classes worked, hence tts.py was born, for example) and because I no longer use it (I know, that's no excuse).

Cp437 is used because I assume that the texts read by this are going to be either Spanish or English. When Spanish used accented letters and ñ it used this encoding.

I don't currently know enough about bytes / strings in Python2 and Python3 to understand what needs to be changed (but I can sit down and read documentation, I have no issue with that, I probably will understand more stuff than last time I tried). Specifically, as I say in the readme, this is based on a project by Tyler Spivey. I just added multilingual support for eSpeak and screen reader support too. Maybe updated eSpeak to eSpeak NG too. If I did, that is thanks to NVDA.

Regarding your last item, yes, now they are. Back when I started they were only available in the Mercurial repository of Accessible Apps, and I (wrongly, I must admit) thought it would be a better idea to bundle them.

If you want to help that'd be really nice. Of course, if you have questions, please ask.

Thanks again!