Some useful tips about sox rec
来源:互联网 发布:最流行的网络歌曲 编辑:程序博客网 时间:2024/05/21 04:20
I’ve spent a lot of time experimenting with SOX to do VOX and have gotten it to work reasonably well. I’ve been using Audacity to view the resultant wave form, and have settled on the following SOX command…
rec snd.wav silence 1 .5 2.85% 1 1.0 3.0% vad gain -n : newfile : restart
This will:
wait until it hears activity above the threshold for a half second, then start recording (silence 1 .5 2.85%)stop recording when audible activity falls to zero for one second (... 1 1.0 3.0%)trim off any initial silence up to voice detection (vad)normalize the gain (gain -n)store the result into a new file (snd001.wav, snd002.wav)restart the process
Getting the “silence” numbers correct involved a lot of trial and error, and will depend on ambient noise as well as the sensitivity of your microphone. I’m using the microphone in the Logitech QuickCam IM on a Raspberry Pi through USB.
On a side note, this whole thing complains with the following…
rec FAIL formats: can’t open input `default’: snd_pcm_open error: No such file or directory
… until I created this variable in the environment:
export AUDIODEV=hw:1,0
Again - this involved a lot of experimentation with the values for “silence”, and it WILL need some tweaking for your environment.
- Some useful tips about sox rec
- Some useful DQL tips
- Some Tips about Interbase
- some tips about jsp
- some tips about jdbc
- Some tips about layout
- About GNIT some tips
- Some Tips About C++
- some tips about python
- some tips about shell variables
- Some tips about looping statement
- Some Tips About Layout Resource
- some tips about python One
- some tips about python Two
- some tips about python Three
- some tips about python Four
- some tips about python Six
- Some tips about python Seven
- HDU 2087 剪花布条
- eclipse 菜单说明
- 蚂蚁的难题(异或最大值问题)
- C# 和SQL server 中生成GUID 的方法 以及他们的之间的区别
- xlistview上下拉展示数据+点击条目选择网络+下载APK
- Some useful tips about sox rec
- 读书笔记《机器学习》:第十一章:特征选择与稀疏学习
- 【maven】Maven--java.lang.NoClassDefFoundError: org/codehaus/plexus/compiler/util/scan/InclusionScanEx
- hdu_4717_三分_题意理解偏差
- poj2796(继续学习单调栈)
- Qt软件开发文档17---自定义messagebox窗口
- Mybatis--删除
- 计算机视觉中的李群、李代数
- Python3 学习札记(五)