我正在尝试将 mp3 文件转换为 Amazon Alexa SSML 标记语言中音频标签所期望的格式,如下所述:https ://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs /speech-synthesis-markup-language-ssml-reference
文档建议使用https://www.ffmpeg.org/ffmpeg.html
我尝试了此命令,但找不到要使用的正确编解码器:
ffmpeg -y -i input.mp3 -ar 44100 -ab 48k -codec:a mpeg2 -ac 1 output.mp3
我知道我需要转换文件,因为 Alexa 失败并出现以下错误:The audio is not of a supported MPEG version