Page 1 of 1

convert to mp3 instead of GSM

PostPosted: Thu Mar 24, 2011 12:50 am
by viciflash
i noticed that all recordings are saved in WAV format and converte to and move to GSM dir.

is this the crontab entry that converts to GSM?

1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --GSM

if i change it to "--MP3" will this make it MP3 and store it in MP3 dir.?

1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3


using GoAutoDial 2.0 | Asterisk 1.4.27.1-1 | Vicidial 2.2.1 | Single server | No telephony card

PostPosted: Thu Mar 24, 2011 7:36 am
by williamconley
chicken. 8)

Give it a shot. You can also (if you are nervous about such things) execute the file manually with --help as a switch to find the basic commands.

Code: Select all
perl /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --help


or with --debugX to SEE what is happening 8)

Code: Select all
perl /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3 --debugX

Test it out, nano the file to see the internal notes:

Code: Select all
nano /usr/share/astguiclient/AST_CRON_audio_2_compress.pl
It's linux, experiment and read :)

PostPosted: Thu Mar 24, 2011 9:00 am
by viciflash
sorry i dont know how to run perl script. i just learned it today after reading your post...

#perl /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --help

it requires 'perl' prior the script...

now i get it. thanks.

PostPosted: Thu Mar 24, 2011 2:52 pm
by williamconley
that's why i posted it with the "chicken" comment. i didn't really believe you were 8).

if noone tells you how to do this stuff ... it can be difficult to learn. linux is NOT simple, but it is cool. i was lucky, i started in DOS2.0 ... in a universe far away.