recognition is the process of
converting spoken words to text. This technology has so many utilization
possibilities, it made me wonder if I could build an application myself which
is capable of such thing. I have done a lot of research until I have found a
software development kit that has enabled me to finally start experimenting.
This article is inspired to present my observations, and to give a technical
review of making a softphone implementation uses voice recognition. My train of
thought will be easier to follow, if you download the "Speech to Text" sample
program from the site I've found. As I did.
the source code for this sample program:
private void buttonOpenFile_Click(object sender, System.EventArgs e)
using (OpenFileDialog openFileDialog = new OpenFileDialog())
openFileDialog.Multiselect = false;
openFileDialog.Filter = "Wav audio file|*.wav";
openFileDialog.Title = "Open a Wav audio File";
if (openFileDialog.ShowDialog() == DialogResult.OK)
RecognitionResult Result = recognizer.Recognize();
foreach (RecognizedWordUnit Word in Result.Words)
file is loaded via the 'openfiledialog' object in a sample way. Then you need
to create a new instance from the engine of voice recognition system. There is
the opportunity to specify a predefined grammar or to create a new one by using
the words you prefer.
In this case the built-in one is used but the other opportunity is better in
the aspect of fastness. Because number recognition only requires a narrower
cluster search than an extended recognition. Even in case you create your own grammar
you do not need to do much just to build it up from the desired words and then
to load it into the sound recognition engine.
Then set the sound source with which you would like to do the voice
recognition. Since the speech.dll function directory supports the analysis
directly from wav file, all you need to do is to set it
'recognizer.SetInputToWaveFile(openFileDialog.FileName);'.Then just invite the
'Recognize()' method that does the analyzation on the voice recognition engine.
The result of recognition will be placed in a list and its content will be
displayed on the screen via a listbox control.
the site you will find another voice recognition example (a softphone) and the
source code for it, too. I choose the one with the shorter code in order not to
lose your attention. If you're interested you will look up the site anyway.
Thanks for reading my article.