How to find “.gsm” audio file length or duration

Home » Asterisk Users » How to find “.gsm” audio file length or duration
Asterisk Users 4 Comments

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.

4 thoughts on - How to find “.gsm” audio file length or duration

  • Set(DUR=$[${STAT(s,/var/lib/asterisk/sounds/en/demo-congrats.gsm)} / 1650])
    Verbose(Length (seconds): ${DUR})

    for asterisk >= 1.6

  • Hi Marry,

    Thanks for help.

    My requirement is fulfill to your suggested function.

    Thanks for friends.

    On Sat, Oct 16, 2010 at 11:39 PM, Barry Miller
    wrote: