[asterisk-users] How do you convert your prompts to an asterisk-friendly format?
Hi, I've used the shells-script at the end of this email to generate 8khz mono wave-files for asterisk from a 144 khz recording. The script does two things: resample & normalize the audio volume. Anyone like to share their recommendations / scripts for doing this conversion? I've just converted to 8khz wave, should I convert to something else? For the googler in the future this is my current script (which I hope to improve): BASEDIR=`dirname $0` PROMPTDIRS="dir1 dir2" for dir in ${PROMPTDIRS} do src=${BASEDIR}/recordings/prompts/${dir} dst=${BASEDIR}/generated/prompts/8khz/${dir} for i in ${src}/*.wav; do sox "$i" -V -r 8000 -c 1 -q -s \ "${dst}/$(basename "$i" .wav).wav" vol 0.8; done normalize-audio -a -20dBFS "${dst}"/* done -- Johan Wilfer JT Technologies & Telecommunications AB Jabber: jo...@jttech.se | Phone: +46 31 3809100 -- _ -- 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
Re: [asterisk-users] How do you convert your prompts to an asterisk-friendly format?
This isn't required, but you will notice a big quality difference if you run the normalized files through Audacity and set the volume to -3 (Recommendation from the Asterisk PDF). There's most likely a way to do this with SOX, I just haven't tried hard enough to find it. If/when you do, please post that. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Johan Wilfer Sent: Tuesday, August 28, 2012 9:40 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] How do you convert your prompts to an asterisk-friendly format? Hi, I've used the shells-script at the end of this email to generate 8khz mono wave-files for asterisk from a 144 khz recording. The script does two things: resample & normalize the audio volume. Anyone like to share their recommendations / scripts for doing this conversion? I've just converted to 8khz wave, should I convert to something else? For the googler in the future this is my current script (which I hope to improve): BASEDIR=`dirname $0` PROMPTDIRS="dir1 dir2" for dir in ${PROMPTDIRS} do src=${BASEDIR}/recordings/prompts/${dir} dst=${BASEDIR}/generated/prompts/8khz/${dir} for i in ${src}/*.wav; do sox "$i" -V -r 8000 -c 1 -q -s \ "${dst}/$(basename "$i" .wav).wav" vol 0.8; done normalize-audio -a -20dBFS "${dst}"/* done -- Johan Wilfer JT Technologies & Telecommunications AB Jabber: jo...@jttech.se | Phone: +46 31 3809100 -- _ -- 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 -- _ -- 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
Re: [asterisk-users] How do you convert your prompts to an asterisk-friendly format?
On Tue, Aug 28, 2012 at 10:39 AM, Johan Wilfer wrote: > Hi, > > I've used the shells-script at the end of this email to generate 8khz mono > wave-files for asterisk from a 144 khz recording. > > The script does two things: resample & normalize the audio volume. > > Anyone like to share their recommendations / scripts for doing this > conversion? I've just converted to 8khz wave, should I convert to something > else? > > For the googler in the future this is my current script (which I hope to > improve): > > BASEDIR=`dirname $0` > PROMPTDIRS="dir1 dir2" > for dir in ${PROMPTDIRS} > do > src=${BASEDIR}/recordings/prompts/${dir} > dst=${BASEDIR}/generated/prompts/8khz/${dir} > for i in ${src}/*.wav; do sox "$i" -V -r 8000 -c 1 -q -s \ > "${dst}/$(basename "$i" .wav).wav" vol 0.8; done > > normalize-audio -a -20dBFS "${dst}"/* > done > > > -- > Johan Wilfer > > JT Technologies & Telecommunications AB > Jabber: jo...@jttech.se | Phone: +46 31 3809100 Try this to test with http://www.digium.com/en/products/ivr/audio-converter.php and compare your output first... -- ~ Andrew "lathama" Latham lath...@gmail.com http://lathama.net ~ -- _ -- 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
Re: [asterisk-users] How do you convert your prompts to an asterisk-friendly format?
2012-08-28 16:44, Andrew Latham skrev: On Tue, Aug 28, 2012 at 10:39 AM, Johan Wilfer wrote: Hi, I've used the shells-script at the end of this email to generate 8khz mono wave-files for asterisk from a 144 khz recording. Try this to test with http://www.digium.com/en/products/ivr/audio-converter.php and compare your output first... Interesting. Didn't know about this. It's good for testing, but I would like to automate it. Is the source-code open or available? -- Johan Wilfer JT Technologies & Telecommunications AB Jabber: jo...@jttech.se | Phone: +46 31 3809100 -- _ -- 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
Re: [asterisk-users] How do you convert your prompts to an asterisk-friendly format?
On Tue, Aug 28, 2012 at 11:00 AM, Johan Wilfer wrote: > 2012-08-28 16:44, Andrew Latham skrev: >> >> On Tue, Aug 28, 2012 at 10:39 AM, Johan Wilfer wrote: >>> >>> Hi, >>> >>> I've used the shells-script at the end of this email to generate 8khz >>> mono >>> wave-files for asterisk from a 144 khz recording. >>> >> >> Try this to test with >> http://www.digium.com/en/products/ivr/audio-converter.php and compare >> your output first... >> > > Interesting. Didn't know about this. It's good for testing, but I would like > to automate it. Is the source-code open or available? > > > > -- > Johan Wilfer > > JT Technologies & Telecommunications AB > Jabber: jo...@jttech.se | Phone: +46 31 3809100 > Yep, check out repotools for that http://svn.asterisk.org/svn/repotools/sound_tools/scripts/ -- ~ Andrew "lathama" Latham lath...@gmail.com http://lathama.net ~ -- _ -- 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
Re: [asterisk-users] How do you convert your prompts to an asterisk-friendly format?
2012-08-28 17:04, Andrew Latham skrev: Yep, check out repotools for that http://svn.asterisk.org/svn/repotools/sound_tools/scripts/ Cool! Thank you! -- Johan Wilfer JT Technologies & Telecommunications AB Jabber: jo...@jttech.se | Phone: +46 31 3809100 -- _ -- 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
Re: [asterisk-users] How do you convert your prompts to an asterisk-friendly format?
Does the .c program compile stand-alone or as an add-on? g++ check_sounds.c check_sounds.c: In function âint main(int, char**)â: check_sounds.c:152: error: invalid conversion from âvoid*â to âdirent**â check_sounds.c:154: error: invalid conversion from âvoid*â to âdirent*â -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Johan Wilfer Sent: Tuesday, August 28, 2012 10:28 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] How do you convert your prompts to an asterisk-friendly format? 2012-08-28 17:04, Andrew Latham skrev: > Yep, check out repotools for that > http://svn.asterisk.org/svn/repotools/sound_tools/scripts/ > > Cool! Thank you! -- Johan Wilfer JT Technologies & Telecommunications AB Jabber: jo...@jttech.se | Phone: +46 31 3809100 -- _ -- 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 -- _ -- 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
Re: [asterisk-users] How do you convert your prompts to an asterisk-friendly format?
On 08/28/2012 10:04 AM, Andrew Latham wrote: > On Tue, Aug 28, 2012 at 11:00 AM, Johan Wilfer wrote: >> 2012-08-28 16:44, Andrew Latham skrev: >>> Try this to test with >>> http://www.digium.com/en/products/ivr/audio-converter.php and compare >>> your output first... >>> >> >> Interesting. Didn't know about this. It's good for testing, but I would like >> to automate it. Is the source-code open or available? >> > > Yep, check out repotools for that > http://svn.asterisk.org/svn/repotools/sound_tools/scripts/ > > I don't know whether those scripts are what is actually used on the digium.com website, but they are what we use to create the various Asterisk sounds packages on http://downloads.asterisk.org/. -- _ -- 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
Re: [asterisk-users] How do you convert your prompts to an asterisk-friendly format?
On 08/28/2012 10:32 AM, Danny Nicholas wrote: > Does the .c program compile stand-alone or as an add-on? > g++ check_sounds.c > check_sounds.c: In function âint main(int, char**)â: > check_sounds.c:152: error: invalid conversion from âvoid*â to âdirent**â > check_sounds.c:154: error: invalid conversion from âvoid*â to âdirent*â > There may be issues building it with g++. I just added a basic Makefile, so you should be able to `svn update` and `make`. -- _ -- 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
Re: [asterisk-users] How do you convert your prompts to an asterisk-friendly format?
Hi I wrote this article and at end i shared how to convert files have a look http://younewplanet.com/index.php/articles/2012-articles-2/asterisk-configuration-step-by-step Also i wrote an other article for file conversion you can also check that http://younewplanet.com/index.php/articles/2012-articles-2/converting-files-for-asterisk-wav-to-gsm-conversion Good luck On Tue, Aug 28, 2012 at 6:45 PM, Jason Parker wrote: > On 08/28/2012 10:32 AM, Danny Nicholas wrote: > > Does the .c program compile stand-alone or as an add-on? > > g++ check_sounds.c > > check_sounds.c: In function âint main(int, char**)â: > > check_sounds.c:152: error: invalid conversion from âvoid*â to âdirent**â > > check_sounds.c:154: error: invalid conversion from âvoid*â to âdirent*â > > > > There may be issues building it with g++. I just added a basic Makefile, > so you > should be able to `svn update` and `make`. > > -- > _ > -- 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 > -- Kind Regards Shakeel Abbas http://younewplanet.com -- _ -- 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