How to convert an audio file to 8000Hz 16Bit Mono Wav in UWP C# to be used in ACRcloud UWP SDK
Asked
Active
Viewed 480 times
1 Answers
1
I think this has been answered here before.
You can use NAudio (I think it should work in UWP, but you need to check as 1.8 version was a bit restricted in UWP. There is an update, but I do not know if it has the necessary classes).
You could also check Bass audio library as it is available for C#, if NAudio will not work.
Check this answer for an example.

Lisander Cuedari
- 51
- 3
-
NAudio for UWP doesn't support this but how to do that with Bass audio library as it can be worked with UWP – Ahmed Walid Sep 08 '19 at 21:23
-
Check ManagedBass. It is a .net wrapper for Bass. I think you are looking for WaveFileWriter. You can find it here: https://managedbass.github.io/api/ManagedBass.WaveFileWriter.html). There is also another one: BASS.NET, but it is not free for commercial use. – Lisander Cuedari Sep 08 '19 at 22:15
-
to convert to WAV file, with **attributes A-Law, 8000Hz, 64kbps, mono.**? – Kiquenet Dec 28 '21 at 14:27