RAJNIKANT VANZA
2010-Oct-16 10:42 UTC
[asterisk-users] How to find ".gsm" audio file length or duration
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. -- Best Regards, Rajnikant Vanza -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101016/4e41bc1d/attachment.htm
Barry Miller
2010-Oct-16 17:23 UTC
[asterisk-users] How to find ".gsm" audio file length or duration
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
Tiago Geada
2010-Oct-16 17:46 UTC
[asterisk-users] How to find ".gsm" audio file length or duration
r you would have to convert that gsm to another format first like ogg On 16 October 2010 18:23, Barry Miller <asterisk-users at notanet.net> wrote:> 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 > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101016/9fcf0c25/attachment.htm
Barry Miller
2010-Oct-16 18:09 UTC
[asterisk-users] How to find ".gsm" audio file length or duration
On Sat, Oct 16, 2010 at 06:46:20PM +0100, Tiago Geada wrote:> r you would have to convert that gsm to another format first like oggWhy on earth would you have to do that? Did you even try doing what I suggested?> > On 16 October 2010 18:23, Barry Miller <asterisk-users at notanet.net> wrote: > > > 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
RAJNIKANT VANZA
2010-Oct-18 06:10 UTC
[asterisk-users] How to find ".gsm" audio file length or duration
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 <asterisk-users at notanet.net>wrote:> On Sat, Oct 16, 2010 at 06:46:20PM +0100, Tiago Geada wrote: > > r you would have to convert that gsm to another format first like ogg > > Why on earth would you have to do that? Did you even try doing what > I suggested? > > > > > On 16 October 2010 18:23, Barry Miller <asterisk-users at notanet.net> > wrote: > > > > > 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 > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Best Regards, Rajnikant Vanza -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101018/8f062cd3/attachment.htm