Sound Card - Line-Out

TomS

Guru
Joined
Oct 18, 2007
Messages
240
Reaction score
6
I would like to record a message using an extension into a file on PiaF.
I would then like to have the message played over-and-over again through the Line-Out on the sound card.
Has anyone tried something like this?

Recording the message should be straight forward using the FreePBX screens: System Recordings
This will save the file in the /usr/lib/asterisk/sounds/custom directory.
I recorded a file called Tom-Loop.wav with no problem at all.
I know I will have to create a shell script to read it over-and-over again.

I need to know what the output device should be:
Can the output from the .wav file be cat'ed to the device out or do I have to use a player (not sure what is available inn PiaF)?

while true
do
some audio player > output device name
sleep 10
done

Thanks
TomS
 
Why are you doing this on PIAF? I'm pretty sure that there's a piece of hardware that will do this. Off the top of my head, I am thinking mpg123. That should work for you. Audio devices are usually like /dev/audio1 or something like that.
I, personally, wouldn't want to burden a PIAF with looping an audio recording.
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top