Click here to Skip to main content
15,892,298 members
Everything / Speech

Speech

speech

Great Reads

by Michael Haephrati, rolsaad
We were asked to develop a piece of software which will select an optimal combination of sentences from e-books which will give the closest result to a set of targets for each character.
by Liju Sankar
Read Loud Email Sender and Subject as soon as you received an email in OUTLOOK
by Michael Chourdakis
A one-function library to easily integrate Speech to Text and Text to Speech in your Win32 applications
by Afzaal Ahmad Zeeshan
Introduction and Background As the title suggests, this post is a personal recommendation for the users of Microsoft Cognitive Services, the services that provide a cloud-based subscription-based solution for artificially intelligent software applications, with an any team, any purpose and any scale

Latest Articles

by Afzaal Ahmad Zeeshan
Introduction and Background As the title suggests, this post is a personal recommendation for the users of Microsoft Cognitive Services, the services that provide a cloud-based subscription-based solution for artificially intelligent software applications, with an any team, any purpose and any scale
by Michael Haephrati, rolsaad
We were asked to develop a piece of software which will select an optimal combination of sentences from e-books which will give the closest result to a set of targets for each character.
by DaveMathews
Speaker independent speech recognition in Mono and .NET C#
by Michael Chourdakis
A one-function library to easily integrate Speech to Text and Text to Speech in your Win32 applications

All Articles

Sort by Title

Speech 

19 Jul 2015 by Revanth Ramesh
Futuristic Talking 7-Segment Time Display Widget in WPF
17 Dec 2021 by Michael Haephrati, rolsaad
We were asked to develop a piece of software which will select an optimal combination of sentences from e-books which will give the closest result to a set of targets for each character.
24 Feb 2013 by ramy adel
hi i am last year cs student and my graduation project is voice search , i want to know the tools that will be needed , i am learning sql server, c# , asp.net, ado.net , what else will i need specially in the voice part.thanks .
25 Apr 2017 by raddevus
Using the Android TextToSpeech API we can write a simple app which reads your SMS (text) messages aloud to you.
10 Sep 2014 by ali_heidari_
Hi.I am working on a small application for android using xamarin.android and c#, a part of it is listening to user speech!I am using Android.Speech.SpeechRecognizer for this. this is my code :Android.Speech.SpeechRecognizer sp =...
23 Aug 2011 by jdcodes
i am trying to develop an android application, which takes input from the user. user speaks mathematical expression or just a number followed by a operator then again number, n finally call out calculate. then application display result. can any one guide me or lead me, how should i achive...
13 Jun 2014 by Peter Leow
You should post your question at Article-Writing[^]
13 Jun 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Please post at Article Writing Forum[^] or Bugs and Suggestion Forum[^].
18 Aug 2015 by Coder1999
Hello. I was wondering if there was a way to assign certain responses to a case statement. This is an example of what I want to do;switch(e.result.text){ case "Tell me a joke": synthesizer.speakasync("Why did the chicken cross the road?"); break; ...
18 Aug 2015 by CPallini
Since you use a string to return another string, using a Dictionary would be pretty straightforward, e.g.Dictionary response = new Dictionary(){ {"Tell me a joke", "Why did the chicken cross the road?"}, {"I don't know", "to get to the...
22 Feb 2016 by Ziggs6
Hey!So i'm having problem with my speech recognition program. It gives me this error: "At least one grammar must be loaded before doing a recognition." Anyways here the code.Thanks!using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using...
24 Feb 2016 by Sergey Alexandrovich Kryukov
Something is wrong here. The code, as you show it, could not even compile. You cannot append string[] to a grammar builder, you have to append an instance of Choice. This is a correct code fragment:string[] phrases = new string[] { // ...}Choices choiceSet = new...
17 Jan 2015 by Liju Sankar
Read Loud Email Sender and Subject as soon as you received an email in OUTLOOK
3 Dec 2019 by CodeChecker 5689
when I am trying to get one of the Audio file to be Tran-scripted using the Provided Conversation Transcription API , I am getting all the Transcribed speech as well as USERID ($ref$) in response. What I have tried: I have taken a WAV audio file(1560Kbps bitrate) Mono which is of 16-bit 16 kHz...
11 Jun 2020 by Mohammad Tavoosi
Hi, I have a C # project that I want to add to that unique voice recognition feature. In this project, I have to have a database of different people's voice samples and compare the incoming sounds in terms of parameters with the sounds in the...
6 Feb 2015 by Member 11433863
How do I create my own custome Dictation grammar for use in Microsoft's SpeechRecognitionEngine?Is this even possible ?I would like to add specific words to the Dictation Graamrer
6 Feb 2015 by Sergey Alexandrovich Kryukov
Custom dictation grammar will be no different from a regular grammar: https://msdn.microsoft.com/en-us/library/system.speech.recognition.grammar%28v=vs.110%29.aspx[^].Only it will be too big; and you will need some huge data file with all grammar data (basically, a dictionary with all forms...
11 Nov 2011 by Aleksa Krstic
Can I make a custom grammar using the System.Speech assembly in a language other than english?
11 Nov 2011 by saharkiz
SAPI supports the following on the time of release: U.S. English, U.K. English, traditional Chinese, simplified Chinese, Japanese, German, French and Spanishyou can use the speech SDK to add to this api.
12 Nov 2011 by srinivas vadepally
Hi Aleksa,Text 2 Speech[^]if you want more help,send me a query.
11 Nov 2011 by Praveen Kullu
Download the Microsoft Speech API from here:SpeechSDK51.exe[^]Install it and then add reference to its dll in your project.You can use this to customize to your needs.
26 Apr 2015 by Member 10699633
I am doing speech recognition in c# and using this code every thing is fine but private void Form1_Load(object sender, EventArgs e) { Choices commands = new Choices(); GrammarBuilder gb = new GrammarBuilder(); ...
26 Apr 2015 by Thomas Daniels
You don't need a switch statement here to run through all words. The word you append to the textbox is the same as the recognized word, so just append e.Result.Text to your textbox:void recEngine_SpeechRecognized(object sender,SpeechRecognizedEventArgs e){ textBox1.Text +=...
28 Feb 2013 by Doug Swanson
I am totally lost as I try to get into speech recognition!!! help!!How do I prepare my self to compile the .xml file to make a grammar??!!Is the compiler a separate entity that I need to obtain??If I can just do it with the command line what are the commands?(Couldn't sift anything...
28 Feb 2013 by Richard MacCutchan
Did you look at the samples here[^]?
27 May 2015 by ChrisCreateBoss
I'm trying to do a calculator using speech recognition, so it can be managed through voice. So for example, the user says "How much is 56 times 90?", the application should answer "5040". I gave a look to this: https://msdn.microsoft.com/en-us/library/office/hh538500(v=office.14).aspx[^]It...
27 May 2015 by Sergey Alexandrovich Kryukov
This is how:https://msdn.microsoft.com/en-us/library/system.speech.recognition%28v=vs.110%29.aspx[^]:https://msdn.microsoft.com/en-us/library/system.speech.recognition.speechrecognizer(v=vs.110).aspx[^],or...
6 Jun 2014 by Me is Needer
Hello every oneI am student in IT engineering , i am working on my project which is speech recognition (speech to text) , i have done the code , but it works better if there is no noise , but in noisy environment it can't recognize well , my question is : Can i make c# code to filter the...
6 Jun 2014 by Espen Harlinn
Have a look at NAudio[^]After a very brief read-through I guess it's worth having a look at - and there is a fair amount of information available at: Audio Programming with NAudio[^] - and according to the table of contents you can use the library to do Pitch Shifting, so it would be...
6 Jun 2014 by DamithSL
check below SO question and answers Library for noise reduction?[^]hope this helps you
2 Jul 2012 by Member 9097242
When I try to load the grammar for the speech recognition I got this error:SAPI does not implement phonetic alphabet selection. I use the default speech DLL for the recognition.And...I know it's a noob question but...how to recognize my voice automatically and then put the text into a...
2 Jul 2012 by Dave Kreskowiak
:WTF: You wired up the LoadGrammarCompleted event (which you don't need and wiredup to the WRONG handler BTW), but not the SpeechRecognized event?? How are you going to get notified that the engine heard something??When you finally get the event handler written and wired up, you can get...
30 Jan 2020 by Member 11588640
I would like to add speech to text to my app and have my app perpetually running. Google, Microsoft, Amazon, etc, offer pay to play serverside translations. The problem is that they are way too expensive for a simple app like mine to run nonstop. I have read a bit about CMUSphinx, Kaldi, and a...
30 Jan 2020 by Gerry Schmitz
"Server side" language processing is an "option". It uses more AI and has more voice options. The OS comes with installed voices and synthesizer that are adequate for most apps. You just need to consult the documentation for the correct "environment" (The Microsoft versus the Windows (speech)...
29 Apr 2014 by Member 10195287
I have been trying to convert speech to text using the Sphinx package in java...but i am unable to understand why is it not correctly producing the tokens....Below is the code.java filepackage speechtotext;import edu.cmu.sphinx.frontend.util.Microphone;import...
10 May 2014 by Ravimal Bandara
The problem might be your accent. But you can solve this by modifying the default acoustic model (list of phonemes of each word). In Sphinx the acoustic model can be found as a text file. It includes some thing like following lines,HELLO HH AH L OWHELLO(2) HH EH L OWTHANKS TH AE NG K...
7 Nov 2022 by Member 15706411
I made a Console Application with C# in VS and i want to convert the code to window form but it was showing error can anyone fix it. What I have tried: using System; using System.Collections.Generic; using System.ComponentModel; using...
31 Jul 2022 by OriginalGriff
Converting a console app to Windows GUI isn't simple: it's a total change in the way things work. A console app does what it wants, and tells the user what to enter when it wants it. A Windows app doesn't: it responds to what the user does when...
31 Jul 2022 by Richard MacCutchan
See Create a new app with Visual Studio tutorial - Windows Forms .NET | Microsoft Docs[^].
7 Feb 2012 by psgviscom
Hi all,In my application i am converting audio (wav file) to text format. I recorded the wav file in microsoft voice only. It is working. But the speech recognition does not work properly. Please help me to rectify the problem. I attached my code with it.Thanks in advance.Imports...
7 Feb 2012 by Christian Graus
Based on your variable names, this is not yet a serious project. Have you downloaded samples from MS and run them ? I'd take a sample and progressively change it to be what you want, and test with each change, at this point, as you've been chasing this for days. Is it possible it just can't...
31 Jul 2022 by OriginalGriff
This is the same question you asked 3 hours ago: Convert C# console app to window form[^] - the answer doesn't change just because you don't like it...
6 Aug 2012 by eladweiss06
Hello,I want to build an application like the one in the old cellphones, where you could record someone's name, and then call that person by saying it (for example, while you were driving).I tried microsoft's speech SDK, but it didn't even come close to understanding what I'm trying to...
6 Aug 2012 by Bernhard Hiller
Perhaps you tried to big a thing when you played with Microsoft Speech Recognition: using its full vocabulary.Create a small vocabulary - containing only the names you want to recognize, and their pronounciation. You could start with recognizing simple numbers (one, two, three,...) before you...
28 Mar 2016 by Member 11350861
Hi I'm using VOCE library in my application as I need both speech synthesis(using freeTTs) and speech recognition(using sphinx4). Here is my speech recognition code public class recognitionTest{public static void main(String argv){ ...
17 Jan 2022 by Srijan Biswas
I am working on a Speech to Text project in python using Vosk API. I am trying to get the timestamps of certain phrases present in the audio for some data analysis. I need some algorithm or some approach to how I can do the same without using...
17 Jan 2022 by Member 15503411
You can get the vosk output to include times (at the granularity of a match sequence) by setting SetWords(True). e.g. rec = KaldiRecognizer(model, sample_rate) rec.SetWords(True) ----- This causes the output to include the result details - e.g. {...
8 Jul 2011 by ebilpola23
Is there a way to get the time a spoken word was recognized in speech recognition? I am using C#, and the SAPI5.1So far, I found this decimal position = (decimal)sfs.Seek(0, SpeechStreamSeekPositionType.SSSPTRelativeToCurrentPosition)from hereI haven't tried it yetbut I want...
8 Jul 2011 by S Houghtelin
When the speech regonition identifies a word you can create a timestamp You can use the current time with DateTime:http://msdn.microsoft.com/en-us/library/efez4684.aspx[^]Or you can use a timer,http://msdn.microsoft.com/en-us/library/system.timers.timer(v=VS.100).aspx[^]Regards.
9 Jul 2011 by Sergey Alexandrovich Kryukov
You can time stamps several different events raised on different phases of recognition: SpeechDetected, SpeechHypothesized, SpeechRecognitionRejected and SpeechRecognized. Those are the events of the classes System.Speech.Recognition.SpeechRecognitionEngine or...
7 Jun 2011 by MrDooDoo
Hello every oneI am new in SAPI.Is there any way to get Phonetic transcription of a word and showing it using SAPI.(for example Babylon can display phonetic of words but these phonetics are not stored in Glossaries)Thanks!
10 Dec 2012 by d3v1l401
When i set the culture en-US,it returns this error: (Italian) Impossibile trovare un riconoscimento con l'ID richiesto. (English) Can not find recognition with required ID.The code that i'm using is equal to the MSDN's one.Many solutions?
10 Sep 2011 by yaquota
Hi all,I am going to start programming my project which is about Speech Recognition . the software will be for kids and I would like to work on two levels ( letters , and short words) to be able to program it. what I need to know is to assign the appropriate tool and language for do it...
10 Sep 2011 by Mehdi Gholam
Take a look at the following link sourceforge project
11 Feb 2012 by Ibrahim Abdelgawad
Hi every one.I want to develop An Arabic speech recognition System that will be mobile basedit will like vLingohttp://store.ovi.com/content/16544?clickSource=AAS program but for Arabic language so i face a problem that what the module that i will select and i need some body to be connected...
2 Nov 2014 by Me is Needer
Hello every one ,i have done my project which is in speech recognition in English language, and i make translate button which translate each word in first richtextbox to Arabic language in secong richtextbox.i have added search button which make highlighting on the word searched and...
3 Nov 2014 by BillWoodruff
Assume: a WinForms project where:1. ControlsButton: btnTranslate: click to translate English to Arabic: uses rtbEnglish, rtbArabicButton: btnSearchButton: click to search for an English word: uses tbSearchEnglishRichTextBox: rtbEnglish: displays user-entered English...
29 Nov 2014 by Me is Needer
hello every one.i have made a simple program which read a text (TTS- text to speech)by whith defualt voice which is Microsoft Anne, then i download SDK 5.1 to add new voices. but the added voices is not clear and not activated in c#code to read.help me how can i add new voices , please ??
12 May 2014 by Member 10451449
Hello every body , i have made program which convert .txt files from text to speech , but i want to improve it to allow it to read pdf files and convert it to speech(voice) , my question , Can i do it?? help me how, please??
12 May 2014 by Sergey Alexandrovich Kryukov
Please see the comments to the question.Reading PDF is covered in this short CodeProject article: Converting PDF to Text in C#[^].And here is how to use text-to-speech in .NET: http://msdn.microsoft.com/en-us/library/system.speech.synthesis%28v=vs.110%29.aspx[^].That's all.—SA
23 Aug 2016 by hor_313
HelloI like to build a simple system with voice recognition, when user says "GO" system runs, and when he says "OPEN" it opens something, etc.How can I do that in C with ARM microcontrollers? Is it possible to have a system with small dictionary (20 to 50 words)? Is there simple way and...
23 Aug 2016 by Cryptonite
I recommend the Raspy Pi for what you're trying to do. Spoiler alert! You will have fun tinkering with this board.Best Voice Recognition Software for Raspberry Pi - DIY Hacking[^]And this one is compiled using GCC (which is a C compiler):Adding speech recognition to your embedded...
23 Aug 2016 by Dave Kreskowiak
You're going to have to do you're own research on this, possible even go as far as implementing some of this in hardware yourself.Start reading these[^].
3 Aug 2017 by Member 12590531
I'm developing Cinema ticket booking with Speech recognition Windows Based Application using c#.I have already used system.speech namespace but found that i should train my system before i can use it. And even after training it, it recognises my speech only. So is there any way to recognise...
3 Aug 2017 by Dave Kreskowiak
What you want doesn't exist. Dragon Naturally Speaking[^] is just about the best speech recognition engine on the market and even it has it's limitations and learns as you talk.
3 Aug 2017 by RickZeeland
Google cloud speech API: Speech API - Speech Recognition  |  Google Cloud Platform[^]
16 Jul 2015 by Mohammed Ibrahim.L
These Article May help youVoice Command[^]How to implement voice recognition in C# using speech-to-text[^]
15 Mar 2019 by Member 13239997
Hi . I am a student doing a voice-related project with c#. I already used Azure Bing Speech API and Google Cloud Speech API to get people's voice as text. But I also need Azure Speaker Recognition API to identify and verify individual speaker using voice. However, there aren't many...
11 Jan 2018 by debasish mishra
Have you checked below Exploring Microsoft Speech APIs – Les articles des consultants et experts Infeeny[^]
11 Jan 2018 by Pete O'Hanlon
I suspect the bit you're having the problem with is the fact that you seem to think that the {body} part literally means that's what you put in. What you should be encoding here is the actual audio that you want to transfer over to the API. Don't forget to properly set the parameters such as the...
15 Mar 2019 by Member 14137469
Use something else. Microsoft has no code for this and I believe it is a dead end. I have been looking for a good example for 3 years, to no avail. Maybe try AWS. The Alexa has bulldozed anything from MS, Apple, and Google. AWS has got to have MUCH better APIs. I am checking this right now.
7 Feb 2021 by Member 14980057
How Can I Use The Dragon Naturally Speaking In Speech Recognition Project Using C# ? How can i use the dragon naturally speaking and tools in speech recognition project using c# in Visual Studio 2017 What I have tried: How Can I Use The...
7 Feb 2021 by RickZeeland
See: c# - Activating Dragon Naturally Speaking Full-Text Control feature in a WPF application - Stack Overflow[^] how to program dragon naturally speaking[^] SpeechKit - Visual Studio Marketplace[^]
10 Apr 2016 by john1990_1
I made this free program:sites.google.com/site/texttospeechwindows/I want it to speak languages other than English, where should the user download the text to speech languages for Windows?What I have tried:I tried this and downloaded but didn't add to my speechlib...
10 Apr 2016 by Richard MacCutchan
See https://support.microsoft.com/en-us/kb/2607607[^].
10 Apr 2016 by Dave Kreskowiak
This[^] download contains all the languages that are currently supported. I think you may be disappointed.
18 May 2019 by Real-One
Hi! I'm devloping a speech recognition app using 'watson-html5-speech-recognition'. How can I constrain the recognition context to recognize only numbers (i.e the recognized word should be a number e.g 101, 40, 76, 4.. etc) and not (one hundred and one, forty, seventy six, four.. etc). I'm...
18 May 2019 by phil.o
Speech recognition converts spoken words to string, and I do not think it is possible, nor suitable, to entangle with the speech recognition engine for that. Moreover, you cannot recognize anything before having it parsed in the first place (from audio signal to actual string). Real-One wrote: I...
17 Jul 2015 by Dharmesh .S. Patil
Try this One Convert audio file to text:-Using System.Speechpublic class MyRecognizer { public string ReadAudio() { SpeechRecognitionEngine sre = new SpeechRecognitionEngine(); Grammar gr = new DictationGrammar(); sre.LoadGrammar(gr); ...
16 Jul 2015 by Coder1999
Hello. Is there a way to convert my speech to text? I already know how to do text to speech but it would be great if I could just speak and the computer automatically turned my speech into text on the screen. For the moment I just want it to turn my speech into text in a Message Box in Visual...
16 Jul 2015 by Abhishek Pant
C# Speech to Text[^]Google[^]
16 Jul 2015 by Dharmesh .S. Patil
There is very good articles available in it:1)Speech recognition, speech to text, text to speech, and speech synthesis in C#[^]2)C# Speech to Text[^]3)How to implement voice recognition in C# using speech-to-text[^]I hope this articles will help you :)
15 Mar 2015 by Dinuka Jayasuriya
How do I display the choices the Speech Engine goes through before deriving at a conclusion, similar to this example: https://www.google.com/intl/en/chrome/demos/speech.html[^]When a sentence is spoken, google displays the choices it goes through by changing the words dynamically before...
15 Mar 2015 by Arkadeep De
Just Google once before you are posting some question.I am providing you just the second link..Speech Recognition for the Web[^]check it...whether it matches your requirement or not.
4 Sep 2014 by alienqueen
sample code or project please. javascript code or c# in asp.net is needed
4 Sep 2014 by sankarsan parida
See the following linksSpeech Recognition for the Web[^]http://www.speechapi.com/apis/javascript/[^]
24 Sep 2014 by alienqueen
not work. another solution please
14 Oct 2020 by Armeen Moon
Iam trying to make voice control form in html through webkit speech for example if I say in voice "add first name" it will go in first name field the "focus" in form, and then I will say "Moon" so in first name field it will input the word I...
14 Oct 2020 by Afzaal Ahmad Zeeshan
There are several ways in which you can do that, the simplest would be to reuse a third-party system, such as Google's Dialogflow or Microsoft LUIS. Direct comparison of the user input and then mapping it to commands is a very difficult and...
26 Jul 2015 by Coder1999
Hey. Is there a way to put a speech recognition engine into a if statement. I have tried but i always get an error and the error is "Cannot assign RecognizeAsyncStop() because it is in a method group".This is the code that I have if (recEngine.RecognizeAsyncStop =...
26 Jul 2015 by Patrice T
Yes, learn the language !The error message tells you that your code don't do what you think it is.
10 Feb 2015 by Waqar Ahmad
I have managed to create Speech to Text app which takes the users input and then inserts it into a textbox.My next goal is to split the words spoken and insert that into the textbox. For example if the user says King Henry 2001 - the app extracts the first two characters of each word (KH)...
10 Feb 2015 by Peter Leow
Refer: Split Strings in java by words[^]
18 Jul 2015 by Coder1999
Hello. I've been searching the internet for a way for me to stop the current speech recognition engine and at the same time activate a new speech recognition engine. Is there a way to do this. I've tried doing it myself but every time I say "Stop Listening" the 'break' window shows up and...
31 Jan 2018 by mahirgul11
Hi, You can use this app. [^]
23 Jan 2014 by prafull agrawal
i m developing an c# project based on voice recognition i want to recognize words in Indian English accent so for that i m thinking for lexicon & then adding pronunciations in that file but i m not getting how to add a lexicon in my project & how to create a lexicon?i want to customize the...
23 Jan 2014 by Sergey Alexandrovich Kryukov
Please see my comment to the question and let me explain some more. I am sorry that my answer is just the opinion and cannot help you to solve your problem, but at least you may get better understanding what you are facing.I never heard of such feature on the engine supplied by Microsoft for...