.NET Library makes it easy and fast to create Voice Command Control functionality. It helps develop voice control in real-time on software or the web. It free supports online and offline use.
$ dotnet add package VoiceNET.LibraryVoiceNET Library makes it easy and fast to create Voice Command Control functionality through Label Prediction. It helps develop software voice control in real-time. It free supports online and offline use. This is a community development project to help people access voice recognition technology more easily.
It's a research project from the FPT Edu Research Festival 2021 contest.
Once you have an app, you can install the VoiceNET Library NuGet package from the .NET Core CLI using:
dotnet add package VoiceNET.Library
or from the NuGet Package Manager:
Install-Package VoiceNET.Library
Drag and drop into the Windows Forms interface:
In Form_Load
VBuilder.getDevice(cbDevice);
VBuilder.setVolume(80);
VBuilder.ModelPath("<your_model_path>");
if(VBuilder.loadModel())
//do something after Load Model
else
//do something if fail
cbDevice_SelectedIndexChanged
StartListening();
Create two private void: StartListening() and DisposeImage().
StartListening()
DisposeImage();
VBuilder.StartListening( cbDevice );
DisposeImage()
pbSpectrogram.Image?.Dispose();
pbSpectrogram.Image = null;
tmDisposeRam_Tick
DisposeImage();
pbSpectrogram.Image = VBuilder.ListenTimer(pbSpectrogram.Width);
tmLisener_Tick
if(VBuilder.requestDisposeListening)
{
picTake.Image = VBuilder.getImageTaken(pbSpectrogram);
lbResult.Text = VBuilder.Result();
StartListening(); //Renew Lisener
VBuilder.requestDisposeListening = false;
}
else
{
VBuilder.reduceNoiseAndCapture(pbSpectrogram);
}
Drag and drop into the Windows Forms interface:
Form_Load
VBuilder.ModelPath("<your_model_path>");
if(VBuilder.loadModel())
//do something after Load Model
else
//do something if fail
btnRecord_Click
VBuilder.Record();
btnStop.Enabled = true;
btnRecord.Enabled = false;
btnStop
VBuilder.Stop();
lbResult.Text = VBuilder.Result(true);
btnRecord.Enabled = true;
btnStop.Enabled = false;
See the example in VoiceNET.Lib.Demo.ASP.NET for more how to use it.
Use the included MicBuilder program to build an MLModel.zip file for your Dataset.