[asterisk-users] How to find ".gsm" audio file length or duration
Barry Miller
asterisk-users at notanet.net
Sat Oct 16 12:23:04 CDT 2010
On Sat, Oct 16, 2010 at 04:12:14PM +0530, RAJNIKANT VANZA wrote:
> Hi Friends,
>
> I need to find ".gsm" file length or duration.
>
> *E.g.*
> demo-congrats.gsm
>
> sox demo-congrats.gsm -e stat
>
> Above command is display file length in seconds. like as
> Length (seconds): 27.960000
>
> I want to ".gsm" file length or duration in dialplan.
Set(DUR=$[${STAT(s,/var/lib/asterisk/sounds/en/demo-congrats.gsm)} / 1650])
Verbose(Length (seconds): ${DUR})
for asterisk >= 1.6
--
Barry
More information about the asterisk-users
mailing list