Voice to command app

Hello Experts,
We would like our app to be commanded by voice.
let's say, be able to recognize a set of 20 commands and then just type what is pronounced.

Is there any library or app that may let us do this with our already existing app?
We can develop too... so please your guidance.
RGuillermoProject ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
Shaun VermaakTechnical SpecialistCommented:
Online or offline application?

For connected applications, I use Microsoft Cognitive services
Chinmay PatelChief Technology NinjaCommented:
Hi RGuillermo,

If you want to target .Net Platform capabilities, you can use System.Speech.Recognition (https://docs.microsoft.com/en-us/dotnet/api/system.speech.recognition?view=netframework-4.8)

There is a bit old but detailed guidance available here on how to set it up and how to use it in your own app: https://docs.microsoft.com/en-us/previous-versions/office/developer/speech-technologies/hh361625(v=office.14)

 private void Form1_Load(object sender, EventArgs e)

// Create a new SpeechRecognizer instance.
SpeechRecognizer sr = new SpeechRecognizer();

Choices commands = new Choices();
commands.Add(new string[] {"command1", "command2", "command3"}); // Add as many words as you want

GrammarBuilder gb = new GrammarBuilder();

// Create the Grammar instance.
Grammar g = new Grammar(gb);


sr.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(sr_SpeechRecognized);

void sr_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

Chinmay PatelChief Technology NinjaCommented:
I should have refreshed the page before answering. :)
RGuillermoProject ManagerAuthor Commented:
Thanks to all experts!!
Chinmay PatelChief Technology NinjaCommented:
Thank you for allocating points but Eric answered the question way before I answered it.
And his blog has details that you might want to have a look at, if you are serious about implementing speech commands in your app.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.