Try and see if these 2 libraries help. (I have no idea whether they decode in memory or not)
how to convert mp3 file to wav(or pcm) in memory ( in c# .net core 3.1 )
hongfei
1
Reputation point
I have an application written using c# in asp.net core as docker ( os: centos) . My objective is to make a call to 3rd party service to download a mp3 file. Then I want to convert this file into wav (or pcm format). how to convert mp3 file to wav(or pcm) format in memory ( in .net core ) , i try to use NAudio (NAudio.wave) , but NAudio only run in Windows , don't work in asp.net core docker (os: Centos), Are there any cross-platform C# audio APIs ? or is there any easy way or any other solution?
Thanks a lot.