How to save WAV file in Windows 10 using NAudio

I am trying to save 16 bit 16 megabytes of PCM monochrome audio bytes to a wav file in a Windows 10 application.

NAudio normaly has a WavFileWriter, but it seems to have disappeared in the Windows 10 version. I can only find access to the new WaveFormat (16000, 16, 1); from https://www.nuget.org/packages/NAudio/1.7.3/

Is there a stream that I can use to create a Wav file or its bytes?

0
source share
2 answers

I suspect that NAudio removed WavFileWriter because there is now a substitute in the standard UWP API in the Windows.Media.Audio namespace. Now you should use the following:

MediaEncodingProfile.CreateWav(AudioEncodingQuality.High);

api:

0

, WaveFileWriter UWP, API File UWP, WaveFileWriter UWP.

, UWP WAV AudioGraph, , , . , AudioEncodingQuality.Low WAV. ( )

0

Source: https://habr.com/ru/post/1670925/


All Articles