[asterisk-users] Playback all the sound files

Steve Edwards asterisk.org at sedwards.com
Fri Apr 23 12:37:41 CDT 2010


On Fri, 23 Apr 2010, Jian Gao wrote:

> There are so many sound files in /var/lib/asterisk/en. Is there an easy 
> way to let me play back all of them one by one while I am watching CLI 
> to see the current file name?

No.

How about:

 	for	F in /var/lib/asterisk/en/*.wav
 		do
 		echo $F
 		play -q $F
 		read -p 'Next? '
 		done

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list