Bring your karma
Join the waitlist today
HUMBLECAT.ORG

Blind and Visually Impaired Community

Full History - 2017 - 08 - 25 - ID#6w05tr
4
Android Text-to-Speech for Reading Programming Snippets and Code? (self.Blind)
submitted by eeg_bert
Does anybody have any recommendations for Android text-to-speech apps that would facilitate the reading of programming language snippets found on, i.e., websites, GitHub repos, and so forth?

I am not actually blind, but have been inspired by reading about $1 who have successfully coded using similar tools. I'm treating this as an experiment to see if my brain can get used to "listening" to code, and how that would affect my thinking in positive ways.

**EDIT:** Ideally, the text-to-speech should read literal characters literally (i.e., "(" should be read as "open paren", and newlines should be read as "newline", and so forth).
fastfinge 1 points 5y ago
May I ask why you're trying to do this on Android? You'd be better using something like Windows, with a full keyboard, a decent IDE, etc.
eeg_bert [OP] 1 points 5y ago
I listen to a lot of audiobooks on Android. My idea was to listen to a codebase on Android with the freedom to move around and so forth. I understand this is incredibly bizarre :-)
fastfinge 1 points 5y ago
I'm not sure you could get anything from listening to a codebase that way. When I'm programming, I often move line by line, so I can stop an think about particularly complex sections. Or sometimes I move character by character, in the case of deeply nested if statements. Plus, my windows screen reader has methods to tell me how deeply indented I am, so I can track scope etc. I often skip from one level to the next, so I can skip over blocks of similar or uninteresting code, rather than have to listen to it repeated over and over. When I'm "listening" to code, I never just start it reading and sit back and listen. It's a deeply interactive process, involving lots of skipping around, lots of changing granularity (from character to line to code block etc), and sometimes even adding explanatory comments to parts of the code I know I'm going to forget, and don't want to have to listen to entirely multiple times ("// Standard network initialization; next section does nothing interesting").
snow671 1 points 5y ago
TalkBack is the default for Android devices
eeg_bert [OP] 2 points 5y ago
TalkBack doesn't seem to accommodate the literal syntax of programming languages (speaking "left open paren", "close bracket", "newline", and so forth). I wonder if there is a way for an Android speech system to read things in this literal way?
snow671 2 points 5y ago
TalkBack is one of the most limited screen readers and as far as I know, still does not have the option to read punctuation. You are better off using a desktop and NVDA, which lets you bind a key to do exactly what you're asking.
eeg_bert [OP] 2 points 5y ago
I'm not a Windows user (I only have Linux). Are you aware of a chrome extension or something similar that allows similar usage?
snow671 1 points 5y ago
Would $1 work?
This nonprofit website is run by volunteers.
Please contribute if you can. Thank you!
Our mission is to provide everyone with access to large-
scale community websites for the good of humanity.
Without ads, without tracking, without greed.
©2023 HumbleCat Inc   •   HumbleCat is a 501(c)3 nonprofit based in Michigan, USA.