I have a Wav file that I’m creating via the Microsoft Kinect that I’m saving to the desktop. I need to convert it to FLAC format so I can send it up to the Google Cloud to be processed from Speech2Text.
I haven’t found any WAV to FLAC encoders in C#.
Is there any way to convert a WAV file to a FLAC file in C#?
Try to use
LibFlac(sourceforge). TheFLAC encoderis an open-source C/C++ project. In order to use it in a C# application you have to usePInvoketo call its application programming interfaceLibFlac.dll. Checkout this blog post, that explore the processing of uncompressed audio data with the FLAC API in C#: