⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.rawplayer

📁 asterisk 是一个很有知名度开源软件
💻 RAWPLAYER
字号:
rawplayer is a simple C applet to stream raw music files in place of mpg123INSTALLcompile the .c file and install:gcc -O2 rawplayer.c -o /usr/bin/rawplayerConverting MP3 to RAWMake track01.mp3 into track01.raw with sox (if compiled with mp3 support).sox -c 1 track01.mp3 -t raw -r 8000 -c 1 -s -w track01.rawOtherwise, use whatever app to turn track01.mp3 into track01.wav then use sox on the wav.sox -c 1 track01.wav -t raw -r 8000 -c 1 -s -w track01.rawOnce you have the raw files put them in any dir on your system (eg /var/lib/asterisk/holdmusic_raw).and set up a class in musiconhold.conf like so:[classes]default => custom:/var/lib/asterisk/holdmusic_raw,/usr/bin/rawplayerThis is the most efficient way to implement moh because no cpu usage is required to explode the very compressed mp3 data then downsample the music to the 8khz mono on the flyinstead the data is already stored on the disk in the format that asterisk needs it to be and the player does little more than pick up frames from the file and hand them to right to the asterisk pipe where the audio is shared into all the channels who require it.If you have cpu to spare and want a simple mp3 solution consider the format_mp3 fromasterisk-addons and the files based moh.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -