How to convert an audio file to 8000Hz 16Bit Mono Wav in UWP C# to be used in ACRcloud UWP SDK
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.