ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm currently writing a program in Windows, that uses SAPI. I can get the program so far to play songs, close applications, open applications, browse the internet, tell me the time, date, etc. Using my voice. I will be programming more features.
I know there's the inherent accessibility in some Linux OS.
I'm new to Linux. I'd like to be able to start porting this program in Linux.
My main goal is to add more accessibility for users who are legally blind, have limited physical functionality, etc.
I'm sure this is possible. Not sure how easy it'll be able to program as it has been in Windows.
Also has anyone had any experience with adaptive device?
I think Linux is more of a perfect platform for this technology, since it's open source. A user will not need to be bound by a paid version of an OS either Windows/Mac
Any suggestions is greatly appreciated. My entrance into Linux is long overdue!
Maybe lets start with something simple. Such as having a program. Open the calculator would I simulate as if I was typing in the command line? or is there something easier?
What would I use to close the calculator once I'm done with it.
Maybe lets start with something simple. Such as having a program. Open the calculator would I simulate as if I was typing in the command line? or is there something easier?
What do you mean? Are you talking about an existing program, or are you discussing a hypothetical calculator program?
Quote:
What would I use to close the calculator once I'm done with it.
It depends on the calculator you are using and possibly the window manager. For example, with apcalc or bc you'd press Ctrl-d.
For a gui program you might use Alt-f-x, or perhaps Ctrl-w. Or by using a screen reader like orca you could navigate the menus with your mouse and select the exit option.
Again I encourage you to have a poke around that the web site I linked to, and to read anything written by Jonathan Nadeau or listen to his podcasts.
Maybe lets start with something simple. Such as having a program. Open the calculator would I simulate as if I was typing in the command line? or is there something easier?
What do you mean? Are you talking about an existing program, or are you discussing a hypothetical calculator program?
Quote:
What would I use to close the calculator once I'm done with it.
It depends on the calculator you are using and possibly the window manager. For example, with apcalc or bc you'd press Ctrl-d.
For a gui program you might use Alt-f-x, or perhaps Ctrl-w. Or by using a screen reader like orca you could navigate the menus with your mouse and select the exit option.
Again I encourage you to have a poke around that the web site I linked to, and to read anything written by Jonathan Nadeau or listen to his podcasts.
I have been going the website you have linked. Currently looking on the internet for stuff by Jonathan.
Thought it'd be easier to do an actual program. So right now I'm using Ubuntu, I want to open the calculator application. As a sighted user I can find the application using the Launcher. Maybe I could simulate a terminal command, unless there's something easier. With a certain voice command. Such as "Open Calculator" I know I have to work on the speech recognition.
My issue is trying to learn where I would find that information to have a C++ or any other language to have a function if you will to open the calculator. Then close the calculator. Ideally I would be able to also perform mathematical functions using voice as well. Thought I would start with the open and close.
Thought it'd be easier to do an actual program. So right now I'm using Ubuntu, I want to open the calculator application. As a sighted user I can find the application using the Launcher.
As a blind user you could do it the same way since you would have a screen reader like orca running.
Quote:
Maybe I could simulate a terminal command, unless there's something easier. With a certain voice command. Such as "Open Calculator" I know I have to work on the speech recognition.
I don't know for sure but I suspect this is not the standard approach. I suspect that typing the command into a "run command" type dialog would be the most efficient approach... but I'm just speculating here.
From what I've heard on the topic I think that the general approach is to write the programs in much the same way as for signted users and let graphical toolkit that has accessibility built in provide the extra/alternative accessible interface in conjunction with a screen reader like orca. Perhaps you can get more information at the Ubuntu Accessibility forum: http://ubuntuforums.org/forumdisplay.php?f=145
But anyway I think the main thing is that frameworks exist that you don't need to reinvent the wheel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.