Dhara
Dhara

Reputation: 1972

Convert audio to text programmatically

I want to convert audio that is in .mp3 and .wav to text.. I write

SpeechRecognitionEngine sre = new SpeechRecognitionEngine();

but shows error of missing assembly.
I read many articles and questions here but did not understand first what to do.
Also tried to install speech.dll but shows error of

please make sure file is accessible and valid assembly or COM component`

any link from where I can download?

If any one can explain me step by step of installation plz. I am newbie to this.

Upvotes: 0

Views: 1271

Answers (1)

Jakob
Jakob

Reputation: 1216

System.Speech is part of the .NET Framework. To install it, right-click your project in Visual Studio and add a reference:

enter image description here

In the next window select System.Speech under Assemblies/Framework and press OK:

enter image description here

You can now reference the System.Speech package. Simply type your code and add your using statement:

enter image description here

Upvotes: 1

Related Questions