SOX——Sound eXchange服务器
the Swiss Army knife of sound processing programs.app
1.准备:spa
2.软件介绍:.net
SoX is a cross-platform (Windows, Linux, MacOS X, etc.) command line utility that can convert various formats of computer audio files in to other formats. It can also apply various effects to these sound files, and, as an added bonus, SoX can play and record audio files on most platforms.命令行
此程序虽然功能不少,但能够看成简单的命令行音乐播放器,进行音频文件播放,尤为是没有图形界面的服务器版本(建议以文件夹组织音频文件做为播放列表)。code
3.程序安装:orm
安装sox程序:blog
apt install sox
安装sox格式扩展包( All SoX format libraries):get
apt install libsox-fmt-all
4.音频播放:it
当文件全为mp3格式时:
play *.mp3
固然,当音频文件格式不一样时:
play *.*
注:当想要播放下一首时使用ctrl+c组合键来切换。(终止当前音频文件播放,执行下一个音频文件播放)
5.扩展:
以运行nmap为例:
nmap xxx.xxx.xxx.xxx;play alarm.mp3
sleep 10;play alarm.mp3
报警音推荐(电子手表报警声):http://downsc.chinaz.net/Files/DownLoad/sound1/201608/7711.mp3
2020-08-08 00:21:25