Re: [asterisk-users] sound file debug

2010-10-13 Thread Danny Nicholas
-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mark Deneen
Sent: Tuesday, October 12, 2010 9:47 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] sound file debug

On Tue, Oct 12, 2010 at 4:23 PM, Danny Nicholas da...@debsinc.com wrote:
 dollars.gsm: data
 dollars.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
 mono 8000 Hz
 dollars.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
 mono 8000 Hz

 Can't be 100% certain on #2, but it must have been right because it
works
 now.  Go figure.

Isn't WAV wav49 and wav plain old pcm (with the wav header)?

-M

Yep - still trying to get this all worked out.  My IVR system uses sox to
piece together and playback files.  The whole thing works great with plain
.gsm, but is encountering glitches when I try to move to wav/WAV format.


-- 
_
-- 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


[asterisk-users] sound file debug

2010-10-12 Thread Danny Nicholas
Hi gang,

I have a fun one for you.  I'm not getting the quality of
sound I want out of GSM, so I'm trying to make my files into .WAV (.wav)
format.  Here is the file output for 5 files:

file *.WAV

cents.WAV:RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz

dollars.WAV:  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit,
mono 8000 Hz

hundred.WAV:  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz

million.WAV:  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz

thousand.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz

 

million, thousand and hundred play, cents and dollars do not 

here is the CLI output:

core show version

Asterisk 1.4.30 built by root @ debsdev-danny1 on a x86_64 running Linux on
2010-09-27 18:28:58 UTC

-- Executing [2...@default:1] Answer(SIP/134-0087, ) in new
stack

-- Executing [2...@default:2] Set(SIP/134-0087,
filedir=/var/lib/asterisk/sounds/digits/84108795/en) in new stack

-- Executing [2...@default:3] AGI(SIP/134-0087,
allwavs.agi|/var/lib/asterisk/sounds/digits/84108795/en|en) in new stack

-- Launched AGI Script /var/lib/asterisk/agi-bin/allwavs.agi

-- AGI Script Executing Application: (BACKGROUND) Options:
(/var/lib/asterisk/sounds/digits/84108795/en/thousand)

-- SIP/134-0087 Playing
'/var/lib/asterisk/sounds/digits/84108795/en/thousand' (language 'en')

[Oct 12 14:54:22] ERROR[13545]: utils.c:968 ast_carefulwrite: write()
returned error: Broken pipe

-- AGI Script Executing Application: (BACKGROUND) Options:
(/var/lib/asterisk/sounds/digits/84108795/en/cents)

[Oct 12 14:54:22] WARNING[13545]: format_wav.c:170 check_header: Can only
handle 16bits per sample: 1

[Oct 12 14:54:22] WARNING[13545]: file.c:385 fn_wrapper: Unable to open
format wav

[Oct 12 14:54:22] WARNING[13545]: file.c:991 ast_streamfile: Unable to open
/var/lib/asterisk/sounds/digits/84108795/en/cents (format 0x4 (ulaw)): No
such file or directory

[Oct 12 14:54:22] WARNING[13545]: pbx.c:5752 pbx_builtin_background:
ast_streamfile failed on SIP/134-0087 for
/var/lib/asterisk/sounds/digits/84108795/en/cents

[Oct 12 14:54:22] ERROR[13545]: utils.c:968 ast_carefulwrite: write()
returned error: Broken pipe

-- AGI Script Executing Application: (BACKGROUND) Options:
(/var/lib/asterisk/sounds/digits/84108795/en/million)

-- SIP/134-0087 Playing
'/var/lib/asterisk/sounds/digits/84108795/en/million' (language 'en')

[Oct 12 14:54:23] ERROR[13545]: utils.c:968 ast_carefulwrite: write()
returned error: Broken pipe

-- AGI Script Executing Application: (BACKGROUND) Options:
(/var/lib/asterisk/sounds/digits/84108795/en/hundred)

-- SIP/134-0087 Playing
'/var/lib/asterisk/sounds/digits/84108795/en/hundred' (language 'en')

[Oct 12 14:54:24] ERROR[13545]: utils.c:968 ast_carefulwrite: write()
returned error: Broken pipe

-- AGI Script Executing Application: (BACKGROUND) Options:
(/var/lib/asterisk/sounds/digits/84108795/en/dollars)

[Oct 12 14:54:24] WARNING[13545]: format_wav_gsm.c:142 check_header:
Unexpected header size 16

[Oct 12 14:54:24] WARNING[13545]: file.c:385 fn_wrapper: Unable to open
format wav49

[Oct 12 14:54:24] WARNING[13545]: format_wav_gsm.c:142 check_header:
Unexpected header size 16

[Oct 12 14:54:24] WARNING[13545]: file.c:385 fn_wrapper: Unable to open
format wav49

[Oct 12 14:54:24] WARNING[13545]: file.c:991 ast_streamfile: Unable to open
/var/lib/asterisk/sounds/digits/84108795/en/dollars (format 0x4 (ulaw)): No
such file or directory

[Oct 12 14:54:24] WARNING[13545]: pbx.c:5752 pbx_builtin_background:
ast_streamfile failed on SIP/134-0087 for
/var/lib/asterisk/sounds/digits/84108795/en/dollars

[Oct 12 14:54:24] ERROR[13545]: utils.c:968 ast_carefulwrite: write()
returned error: Broken pipe

-- AGI Script allwavs.agi completed, returning 0

-- Executing [2...@default:4] Hangup(SIP/134-0087, ) in new
stack

  == Spawn extension (default, 2553, 4) exited non-zero on
'SIP/134-0087'

-- Executing [...@default:1] Goto(SIP/134-0087, end-call|h|1) in
new stack

-- Goto (end-call,h,1)

-- Executing [...@end-call:1] Hangup(SIP/134-0087, ) in new stack

  == Spawn extension (end-call, h, 1) exited non-zero on 'SIP/134-0087'

 

I've googled for this and still no joy.  Any ideas?

Danny Nicholas

-- 
_
-- 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] sound file debug

2010-10-12 Thread Roger Burton West
You have two separate problems here:

(1)

dollars.WAV:  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit,
mono 8000 Hz

You should have generated this with 16-bit resolution, like all the
others.

(2)

Not sure about the cents - sure it's coming out as 16-bit? Is the file
in the right place?


-- 
_
-- 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] sound file debug

2010-10-12 Thread Danny Nicholas
-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Roger Burton
West
Sent: Tuesday, October 12, 2010 3:15 PM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] sound file debug

You have two separate problems here:

(1)

dollars.WAV:  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit,
mono 8000 Hz

You should have generated this with 16-bit resolution, like all the
others.

(2)

Not sure about the cents - sure it's coming out as 16-bit? Is the file
in the right place?

Don't know I would have ever found this in google, but apparently it's a
Background (Playback?) bug.  If I do Background(foo) and there is only a
foo.WAV, I get the message in the CLI from my prior post.  But, if there is
also a foo.wav, Background apparently loads and plays that file.
Here is the updated file for dollars that works
file dollars*
dollars.gsm: data
dollars.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz
dollars.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz

Can't be 100% certain on #2, but it must have been right because it works
now.  Go figure.


-- 
_
-- 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] sound file debug

2010-10-12 Thread Mark Deneen
On Tue, Oct 12, 2010 at 4:23 PM, Danny Nicholas da...@debsinc.com wrote:
 dollars.gsm: data
 dollars.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
 mono 8000 Hz
 dollars.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
 mono 8000 Hz

 Can't be 100% certain on #2, but it must have been right because it works
 now.  Go figure.

Isn't WAV wav49 and wav plain old pcm (with the wav header)?

-M

-- 
_
-- 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