简体   繁体   English

音频文件转换

[英]Audio file conversion

I'm trying to convert from mp3 to alaw, but sox does not seem to help. 我正在尝试从mp3转换为alaw,但sox似乎无济于事。

sox FAIL formats: no handler for file extension `alaw'
Am I missing something? 我想念什么吗? Any suggestions? 有什么建议么?

file extension for alaw should be .al alaw的文件扩展名应该是.al

Have a look at http://sox.sourceforge.net/soxformat.html 看看http://sox.sourceforge.net/soxformat.html

"ul indicates 'μ-law' (8-bit), al indicates 'A-law' (8-bit)" “ ul表示'μ-law'(8位),al表示'A-law'(8位)”

SoX doesn't recognise the file extension .alaw. SoX无法识别文件扩展名.alaw。

It does support A-law encoded files though. 它确实支持A-law编码的文件。 You just need to double check what format your audio is actually in. 您只需要仔细检查音频的实际格式即可。

If it's just raw (ie no header) audio, this is a simple A-law file. 如果它只是原始(即没有标题)音频,则这是一个简单的A-law文件。 Change the extension to either .al or .la depending on which way round your bits are (.la is inverse bit order), then try again. 将扩展名更改为.al或.la,具体取决于您的位的取整方式(.la是逆位顺序),然​​后重试。

If your audio was in a different "container format" (ie .au, .gsrt, .maud, .prc or .voc for example) then the file extension should already be one of these, and I'm not sure why it wouldn't be! 如果您的音频使用不同的“容器格式”(例如,.au,.gsrt,.maud,.prc或.voc),则文件扩展名应该已经是其中一种,我不确定为什么会不会! If you know the audio is definitely one of these then try changing to the appropriate extension and give that a shot. 如果您知道音频绝对是其中之一,请尝试更改为适当的扩展名并进行拍摄。

Check the SoX manual for more info :) 查看SoX手册以获取更多信息:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM