供应商的框架向我提供了base64编码的音频-格式为:“ 2通道,16位44.1Khz pcm编码”。
我正在尝试将此音频剪辑发送到AWS Lex https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html#API_runtime_PostContent_RequestSyntax
这需要以下输入类型之一:
audio / l16;速率= 16000;频道= 1
audio / x-l16;采样率= 16000; channel-count = 1
audio / lpcm;采样率= 8000; sample-size-bits = 16; channel-count = 1; is-big-endian = false
我似乎无法弄清楚如何进行此转换。任何帮助将不胜感激!