申请.pcm文件为sox [英] apply for .pcm file as sox

查看:174
本文介绍了申请.pcm文件为sox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用sox交换16kHz pcm-> 48kHz wav. 但是,pcm文件不适用于sox.

I want to exchange 16kHz pcm --> 48kHz wav using sox. however, pcm file isn't applied in sox.

所以,我只是将pcm更改为raw, 接着 sox -r 16000 -e签名-b 16 -c 1 test.raw -r 48000 out.wav

so, I just changed pcm to raw, and then sox -r 16000 -e signed -b 16 -c 1 test.raw -r 48000 out.wav

我可以申请不转换为原始文件的pcm文件吗?

Can I apply for pcm file not convert raw?

推荐答案

对于PCM文件,由于PCM是无头文件,因此您需要将'-t raw'添加为 first 参数.

For the PCM file, since PCM's are headerless, you need to add '-t raw' as the first argument.

sox -t raw -r 16000 -e signed -b 16 -c 1 test.raw -r 48000 out.wav

尝试一下.

还可以尝试其他Endian设置; -L; -B; -X 尽管一次只能使用一个,并且仅在不使用的情况下不起作用.

Also try the different Endian settings; -L; -B; -x though only use one at a time, and only if not using one doesn't work.

这篇关于申请.pcm文件为sox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆