开发者

playback audio file from byte code (audio file format is CCITT A-Law)

I want to playback audio file from byte code. I already have byte code for audio file. But when I playback with System.Media.SoundPlayer, I got error as "{Sound API only supports playing PCM wave files."}. My audio file format is (CCITT A-Law). Can any one who have this knowled开发者_Python百科ge share with me pls??

Thanks.


The standard G.711 tells you how to convert 8 bit A-law into 16 PCM. Here's a code snippet


WAV files can be encoded in many ways, usually PCM or MP3. .NET only supports PCM. Use a program to convert, this one is free (just remembed to uncheck the adware crap): http://www.nch.com.au/switch/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜