摘要:
usingSystem.IO;//读filename到byte[]privatebyte[]ReadFile(stringfileName){FileStreampFileStream=null;byte[]pReadByte=newbyte[0];try{pFileStream=newFileStream(fileName,FileMode.Open,FileAccess.Read);BinaryReaderr=newBinaryReader(pFileStream);r.BaseStream.Seek(0,SeekOrigin.Begin);//将文件指针设置到文件开pReadByte=r 阅读全文
摘要:
音频转换:1.转换amr到mp3:ffmpeg -i shenhuxi.amr amr2mp3.mp32.转换amr到wav:ffmpeg -acodec libamr_nb -i shenhuxi.amr amr2wav.wav3.转换mp3到wav:ffmpeg -i DING.mp3 -f wav test.wav4.转换wav到amr:ffmpeg -i test.wav -acodec libamr_nb -ab 12.2k -ar 8000 -ac 1 wav2amr.amrffmpeg.exe -i PA003.wav -ar 8000 -ab 12.2k -ac 1 targe 阅读全文