![]() Please note that this won't always be possible. But if we wanted it to be PCM, we'd need to use WaveFormatConversionStream.CreatePcmStream to look for an ACM codec that understands the incoming WaveFormat and can turn it into PCM. Now in the previous example we saw how we could create a WAV file that contains the G.729 audio still encoded. But we can use WaveFormat.CreateCustomFormat or even derive from WaveFormat to define the correct format. G.729 isn't actually a built-in WaveFormat in NAudio (some other common ones like mu and a-law are). g729 file containing raw audio compressed with G.729. Let's look at a compressed audio example next. Note that WAV files can contain compressed audio, so as long as you know the correct WaveFormat structure you can use that. OpenRead( path), new WaveFormat( 8000, 1))
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |