ashmit-001
ashmit-001

Reputation: 402

Which tool should I use to record audio (or convert the recorded audio) in the format supported by Microsoft Speaker Recognition API?

I'm trying out the Microsoft cognitive services, Speaker Recognition API in ASP.NET Core. However I've no idea how to give the audio file as the input of the following supported format:

Container- WAV

Encoding- PCM

Rate- 16K

Sample Format- 16 bit

Channels- Mono

Can someone please help me out with this?

Thank you.

Upvotes: 2

Views: 88

Answers (1)

Ram
Ram

Reputation: 2754

To configure the input mode to be wav:

// Configure the input to the recognizer.

recognizer.SetInputToWaveFile(@"c:\temp\SampleWAVInput.wav");

This article discusses how to recognize audio files with the recognizer in the System.Speech namespace.

you can also try with SetInputToAudioStream() with the format of the input.

Upvotes: 1

Related Questions