Click here to Skip to main content
15,884,986 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 Score

Speech 

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.
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...
11 Jul 2011 by BobJanova
This is a seriously hard problem, and, frankly, the fact that you're asking such a question as a one liner expecting someone to answer it shows that you are not ready to try solving it.
19 Dec 2011 by Sergey Alexandrovich Kryukov
You need to reference the assembly System.Speech — a standard .NET library and use System.Speech.Recognition namespace. Start from here: http://msdn.microsoft.com/en-us/library/system.speech.recognition.aspx[^].It strange that you did not find it.—SA
17 Jan 2015 by Liju Sankar
Read Loud Email Sender and Subject as soon as you received an email in OUTLOOK
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...
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!
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.
19 Dec 2011 by Suresh Suthar
First refer to SA's solution and also look at these...
1 Jul 2012 by Sergey Alexandrovich Kryukov
First, something or somebody fooled you about the "annoying recognition window". Speech recognition does not require any windows at all. You probably worked with some stupid application, not with recognition engine itself.The second part of the question is quite correct. You really need to...
2 Jul 2012 by Dave Kreskowiak
Your gram declaration runs BEFORE the Form.Load event is fired, so on the first run of your app, the grammar.xml file doesn't exist and is empty.Your code should be creating the Grammar object after it has written the file:Public Class Form1 Dim engine As New...
6 Aug 2012 by ridoy
How can a spoken word can be compared with an audio file?Consider a case,I say "This is an example" by microphone and save it as a .mp3 file.Then i will save it in a database.Then when my application will run,if i say "This is an example" it can detect that by comparing with that audio file from...
6 Aug 2012 by Thomas Daniels
First, include the System.Speech library.My code, for a console application, is the next:// default using statements// then import System.Speech.Recognition namespaceusing System.Speech.Recognitionnamespace SpeechRecognition{ static class Program { static...
20 Nov 2014 by Sergey Alexandrovich Kryukov
There is a predefined grammar for dictation covering some big dictionary, System.Speech.Recognition.DictationGrammar:http://msdn.microsoft.com/en-us/library/system.speech.recognition.dictationgrammar%28v=vs.110%29.aspx[^].However, don't hold your breath. I tried it with the engine supplied...
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...
10 Apr 2016 by Dave Kreskowiak
This[^] download contains all the languages that are currently supported. I think you may be disappointed.
29 Apr 2016 by Dave Kreskowiak
Microsoft's speech API is not setup for full dictation.Something like Dragon[^] is, but it isn't free.
19 May 2019 by Thomas Daniels
Check out the Choices[^] class in the System.Speech.Recognition API. A Choices object is something you can append to a GrammarBuilder with .Append, and you can create a Choices both out of a String array and a GrammarBuilder array. I've never done experiments to this extent but Choices should...
27 May 2020 by Michael Chourdakis
A one-function library to easily integrate Speech to Text and Text to Speech in your Win32 applications
10 Jan 2022 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
3 Jun 2011 by Sergey Alexandrovich Kryukov
Well, you can try what the Microsoft Speech recognition engine could do about that using System.Speech.Recognition.SpeechRecognitionEngine.Yes, dictating lengthy sentence is quite different from command recognition. The key difference is using the DictationGrammar. Try it with console...
3 Jun 2011 by Abhinav S
TrySpeech Recognition[^]A Very Easy Introduction to Microsoft .NET Speech Synthesis (VB, C#, C++)[^]
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...
24 Oct 2011 by OriginalGriff
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...A quick search using your subject as the search term gave loads of information:...
9 Dec 2011 by Manoj K Bhoir
Check out this Links :http://msdn.microsoft.com/en-us/library/system.speech.recognition.aspx[^]http://msdn.microsoft.com/en-us/magazine/cc163663.aspx[^]See this article : http://msdn.microsoft.com/en-us/magazine/cc163663.aspx[^]
21 Jul 2012 by Sandeep Mewara
Did you look at Microsoft's speech library: MSDN: Microsoft Speech API (SAPI) 5.3[^]Further, did you look at these existing CP articles/answers if they are of help:C# Speech to Text[^]Speech to Text conversion in .net[^]
21 Jul 2012 by Ganesh Kumar Kaki
HiInorder to convert your speech to text you have to use MICROSOFT SPEECH SDKBy using this you can easily convert your speech to text.you can download the speech SDK from the following linkhttp://www.microsoft.com/en-us/download/details.aspx?id=10121[^]Might the following link will...
6 Aug 2012 by Aarti Meswania
yes you can,.Net Provides dll for this,for reference code see,http://msdn.microsoft.com/en-us/library/system.speech.recognition.speechrecognizer.aspx[^] Happy Coding!:)
6 Aug 2012 by Bernhard Hiller
The most important information was provided as a comment to an answer only: "different language - Bengali".Why is this the most important info?Speech recognition starts with retrieving "phonems" from the audio stream. The phonems available - and their exact pronounciation - differs between...
19 Oct 2012 by Sandeep Mewara
Your title says VB.NET but tag does not. Further, download it? Assuming you want to make a TTS application in VB.NET, please look at these:Video: Text to Speech (TTS) in Vb .net - YouTube[^]Video: VB.NET: Simple Text To Speech Application - YouTube[^]Text to Speech with the Microsoft...
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 .
17 Jan 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Start from Get Started with Speech Recognition[^].Google[^] gives you many good links out of which there are many Code Project articles listed.You can start learning by going through them.Also see how CodeProject[^] replies.You have nice requirements, but you need to study first...
17 Jan 2014 by agent_kruger
you could use POP client see the example below to get the whole mail to c#A POP3 Client in C# .NET[^]
30 Jan 2014 by ch.haya
i have a code working for a smal sound wave but i have to convert a full lenght english song to text.... my code is only working with a short sound wave...i have written my code below ...what is wrong with this code and what are the changes i have to make in this code ...thanks...
11 Oct 2014 by Mehdi Gholam
Speech recognition and specific person identification are advanced research topics, if you did this you could make a lot of money.Start here : Get Started with Speech Recognition[^]http://en.wikipedia.org/wiki/Speaker_recognition[^]
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...
13 Nov 2014 by Afzaal Ahmad Zeeshan
There is no Screen Reader in .NET or in Visual C# langauge itself. The screen can be however accessed as a Graphics object in your application, and then you can use some sort of OCR or OMR service to read the characters from the graphics or image you save. I can give you an example of how to get...
20 Nov 2014 by Sheepings
Maybe this might be of interest to the OP; it made an interesting read for me: https://software.intel.com/en-us/articles/voice-recognition-and-synthesis-using-the-intel-perceptual-computing-sdk There are a dozen others just like the one Microsoft offer if you search Google for C# Speech...
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...
17 Dec 2015 by Matt T Heffron
Get a microphone and record it yourself.Hire someone to be the voice. Be sure to get an appropriate release (legal) to use the recordings as you intend.If you know someone (relative, friend, acquaintance, ...) whose voice meets your needs, just ask them to help!20 years ago a project I...
17 Dec 2015 by Richard Deeming
If you're using .NET, have you tried the built-in speech synthesizer[^]? On my W10 computer, the "Microsoft Hazel Desktop" voice seems to match your gender and accent requirements. You can download other voices[^] from Microsoft, and you can apparently use some third-party "SAPI-compliant...
8 Feb 2016 by Dave Kreskowiak
I think you're looking for "acoustic fingerprinting". Google for it.Though, this is just a guess because your problem description is quite vague.
10 Apr 2016 by Richard MacCutchan
See https://support.microsoft.com/en-us/kb/2607607[^].
29 Apr 2016 by Mehran Shafqat
hello every one sir is there any api available for c# that convert speech to text. im making a voice based system where user just speak and software recognize these word and type. im using custom grammar for this but its not enough to recognize everything because i need to write every single...
25 Jul 2016 by Richard Deeming
Your code is running ON THE SERVER. If your server has speakers, the text will be read out on the server, to surprise and annoy your IT administrators. If your server has a microphone, the only text it's going to recognise will be the IT administrators swearing at you for writing code...
3 Apr 2019 by Dean Roddey
Concepts and implementation of speech recognition and control via voice
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[^]
20 Jun 2023 by Richard MacCutchan
Looking at the C# code you have: public void StartSpeechRecognition() { AndroidJavaObject speechResultListener = new AndroidJavaObject("com.example.unityandroidplswork.STTPlugin$SpeechRecognitionResultListener", this); ...
3 Jun 2011 by Thilina C
I'm doing a project that involves speech recognition. But here i don't just need to recognize simple commands, I need my application to identify a lengthy sentence.I'm currently using Microsoft SAPI5.1. But when i execute my application it doesn't take what I'm saying accurately.Can any...
9 Jun 2011 by grad_stu
Hi All,I'm a newbie to both Speech Recognition and C#. I'm working on a project which includes distinguishing commands from normal conversation. I added a custom grammar that indentifies four commands (as of now) namely, 'next', 'previous', 'home', 'end'. But when I speak some normal...
9 Jun 2011 by Dave Kreskowiak
If you're listening for both at the same time, you'll have to put a single word in the command list to get the attention of a seperate command listener.Basically, you listen for a single word, like "computer" or "command", then when that command is heard, you change out the commands in the...
9 Jun 2011 by grad_stu
I'm listening for some specific words only through SpeechRecognitionEngine. Snippet of my code goes as RecEngine = new SpeechRecognitionEngine(); RecEngine.SetInputToDefaultAudioDevice(); mygrammar = sampleGrammar(); ...
13 Jun 2011 by Sergey Alexandrovich Kryukov
I don't think you can blame your code for that problem. This is the level of technology and… you pronunciation.Is it English? Even I often misunderstand some words pronounced in English by people from Vietnam. At the same time, many native English speakers (I'm not) usually understand...
7 Aug 2011 by jithinpl
You can use SpeechSynthesizer Class for how to pronounce a word.Sample C# CodeSystem.Speech.Synthesis.SpeechSynthesizer sp= new SpeechSynthesizer();sp.Speak("Hello");Sample VB CodeDim sp as new System.Speech.Synthesis.SpeechSynthesizersp.Speak("Hello")
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...
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
25 Oct 2011 by Anuja Pawar Indore
Refer thishttp://code.msdn.microsoft.com/Text-to-Speech-Converter-0ed77dd5[^]
27 Oct 2011 by v30sharp
hi====How to use an other sound for speech in c#.net ??i dont like default win sound for read my text in program
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.
3 Dec 2011 by knuty123
I have 5 different voices installed in my systemAlberto16Audrey16IVONA AmyMicrosoft SamVM Katewhen I run the following test app both Alberto16 and Audrey16 do not fire the "speechinprogress" event. All the other voices fire the event. Could this be a bug in the speech...
4 Dec 2011 by knuty123
Thx Dave! I have tried back and forth with the 5 voices installed. the behavior is clear. Only those 2 voices don't work. I have just added some more eventhandlers and one more voice to my system. Now there is even more chaotic behavior. All voices fire the "speech started" event. No voice...
9 Dec 2011 by girly111
Hello! :)I'm planning on developing a simple text editor with speech recognition for my school project but I really don't know what resources I need or what API to use or even what language is most suitable. Really appreciate if anyone can suggest how to start with! :)
9 Dec 2011 by Sergey Chepurin
I cannot imagine any simple speech recognition application. But if you are familiar with C#, there is a sample application included in Windows 7 SDK.You can find it in C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\winui\speech\cs\speechrecognition.
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...
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...
25 Feb 2012 by Nawras Nzar
hello guysAm developing a TTS for my own language in java (its my final project which is not developed before, therefor I could NOT use built-in classes). I can recognize the diphones for input text, for playing: I place the diphones in an array, after the input text analysis completed I play...
20 Mar 2012 by salbat
Hi I'm developing a web project with c# and using VS2010. I'm using the SpeechLib, that converts text to speech. Locally in my computer all works well, but when hosting the project the page doesn't works and the error 500 is outputted.How can I solve this problem? Thanks![EDIT: Added...
20 Mar 2012 by El_Codero
Hi,we need much more info about your project. Do you already checked permissions/basic settings/Event Log?There are several sub categories at Error 500 (IIS 7 + 7.5):http://support.microsoft.com/kb/943891/en[^]You already started IIS Service and it's installed and running...
20 Mar 2012 by Bernhard Hiller
Look: when your application is running on the server, where will the audio be played? On your client computer? No, of course on the server. And do you think a web server has some audio devices attached? Surely not. It fails the moment when your application starts to play the audio.What you can...
23 May 2012 by Member 775665
MS Speech has been configured not to start at system start up.When my speech app starts, the ms speech ui appears.My speech app is unable to receive events unless the ms speech is placed in listening state.So how does one eliminate the need to interact with desktop ms speech UI in...
2 Jul 2012 by Member 9097242
When I try to load the grammar I made programatically I got an error: SAPI does not implement phonetic alphabet selection.My code:Imports System.SpeechImports System.XmlImports System.Speech.RecognitionImports System.IOPublic Class Form1 Dim engine As New...
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...
21 Jul 2012 by Majji Revanth
i want to create an application named "ONLINE EXAMINATION FOR BLIND PEOPLE". i just want to convert only specific words from speech to text like NEXT, REPEAT, OPTION 1, OPTION 2, OPTION 3, OPTION 4, SUBMIT, START. If 30% of the speech is matched to the text it should take the text. i have the...
21 Jul 2012 by Rishant
Visit this pagehttp://stackoverflow.com/questions/4677471/voice-speech-to-text[^]and alsohttp://msdn.microsoft.com/en-us/magazine/cc163663.aspx[^]
23 Jul 2012 by Christian Graus
Don't forget, ASP.NET can't do speech recognition. You need a way to embed the component in your web page, and HTML is not going to do it for you. You need to post code, but I suspect our first issue will be that your code is running on the server, which happens to also be the client on your...
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...
29 Oct 2012 by MR. AngelMendez
Hi, I want to know if it is possible to create a simple application where a richtextbox has text and the person highlights the words by speech recognition. Also, how can I only highlight the word if it is the next word in the string so the user doesn't end up highlighting the same word in random...
7 Jan 2013 by Plantronics
Starting Speech Recognition on device events.
1 Dec 2012 by Kasparov92
Hello, I want to make a program that reads a given English word in real time.I have 2 ideas to make it but I need some guidance threw them 1) is to make have a database with all the English words and a pronunciation for each word, so given a word I will have to look for it in the DB...
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?
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[^]?
28 Feb 2013 by Ishpreet Kaur
I need algorithm or vb.net or c/c++ code for applying STFT(Short-time Fourier Transform) on speech signal samples.
28 Feb 2013 by OriginalGriff
Good for you! It's obviously your lucky day - Google has a sale on with STFT. Just for today, all queries about STFT are free!STFT(Short-time Fourier Transform) on speech signal samples[^]In future, please try to do at least basic research yourself, and not waste your time our ours.
6 Mar 2013 by MJROCKR
hi friends how to make a speech to text conversion application in c# from the scratch.i am newbieto c# so please assist me.-regards mayank
22 Aug 2013 by kundarmah
How do I create an application such as Voice control without internet? https://play.google.com/store/apps/details?id=com.KnJSoftware.VoiceCommander&hl=en[^]Wanted this to be the offline alternative while using the Google Voice search when using internet*done with this*. It uses written...
29 Aug 2013 by Tirthak.net
https://developers.google.com/...
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...
26 Mar 2014 by Devil_06
I am Developing an Simple Speech recognition application which recognizes a some wordsi am confused between using System.Speech.Recognition and Microsoft.Speech.Recognition because both are almost the same ! i cant make out which should i use !i want to try my app to be optimized...
26 Mar 2014 by littleGreenDude
Check this out http://social.msdn.microsoft.com/Forums/lync/en-US/39ec282d-cc51-49c7-9686-0e4d3f9b8516/what-is-the-difference-between-systemspeechrecognition-and-microsoftspeechrecognition?forum=ucmanagedsdk[^]
9 Apr 2014 by azizgolzar
helloi recordec RTP payload payload's (coded by speex or opus or gsm) in a txt file(number in hex) and i need to decode it to a .wav filecan u help me plz? have good time
9 Apr 2014 by Richard MacCutchan
See http://en.wikipedia.org/wiki/Real-time_Transport_Protocol[^] and https://www.google.com/search?q=.wav+file[^].And also Code Project Quick Answers FAQ[^].
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...