How to convert Linear16 PCM wav to G711 8-bit 8-khz MULAW wav with same quality as g711.org?
- 阅读更多 关于 How to convert Linear16 PCM wav to G711 8-bit 8-khz MULAW wav with same quality as g711.org?
问题 I am using NAudio to attempt to convert Linear16 PCM wav files that come out of a 3rd party Text-To-Speech API to G711 8-bit 8-khz MULAW that will work as a telephony prompt. Using techniques found in the library authors documentation and some stack overflow posts and specifically following suggestion to do a 2 step conversion. dynamic foo = JsonConvert.DeserializeObject<dynamic>(result); byte[] decoded = Convert.FromBase64String(foo.audioContent.ToString()); WaveFormat newFormat = new