Wav.file not playing through
Posted: Wed Mar 30, 2005 11:26 am
I have a nice wav file to use for hold music, a 20 second spot of classy jazz. I have converted the files to PCM 16 bit at 8MHz as we covered in an earlier post.
As it stands, Caller calls in during business hours, gets a please hold wav file, then music. Music plays for about 3-4 seconds and dies. Is there a time limit for how long a wav file can be?
CID plays about 4 second of the file and kicks out error:
3/30/2005 09:11:41 AM - Script problem: Could not play sound over phone because Could not play wave file "C:\Program Files\Ascendis Software\Caller ID\HoldMusic\City_Stroll_8_bit_mono_11k.wav" PhoneSound ('C:\Program Files\Ascendis Software\Caller ID\HoldMusic\City_Stroll_8_bit_mono_11k.wav'); [line 4, column 1]
3/30/2005 09:11:41 AM - Script has ended, but call is still connected -- disconnecting
3/30/2005 09:11:42 AM - waveOutOpen() -- The specified device is already in use. Wait until it is free, and then try again.
3/30/2005 09:11:42 AM - Script problem: Could not play sound over phone because Could not play wave file "C:\Program Files\Ascendis Software\Caller ID\HoldMusic\City_Stroll_8_bit_mono_11k.wav" PhoneSound ('C:\Program Files\Ascendis Software\Caller ID\HoldMusic\City_Stroll_8_bit_mono_11k.wav'); [line 4, column 1]
3/30/2005 09:11:42 AM - Script has ended, but call is still connected -- disconnecting
Line Monitor:
03/30/2005 09:11:42.140 - TAPI device=$0 event=LINE_REPLY
03/30/2005 09:11:42.140 - LINE_REPLY: (FLine)
03/30/2005 09:11:42.140 - TAPI $10291 success
03/30/2005 09:11:42.140 - TLineSink.OnLineReply
03/30/2005 09:11:42.687 - Reopening U.S. Robotics 56K Voice PCI
03/30/2005 09:11:42.703 - attempting open with media mode [LINEMEDIAMODE_INTERACTIVEVOICE, LINEMEDIAMODE_AUTOMATEDVOICE] and privilege [LINECALLPRIVILEGE_MONITOR, LINECALLPRIVILEGE_OWNER]
03/30/2005 09:11:42.703 - TAPI lineOpen error= LINEERR_INVALMEDIAMODE:
03/30/2005 09:11:42.703 - Open on line 0 failed with TAPI error "Invalid media mode"
03/30/2005 09:11:42.703 - attempting open with media mode [LINEMEDIAMODE_INTERACTIVEVOICE] and privilege [LINECALLPRIVILEGE_MONITOR, LINECALLPRIVILEGE_OWNER]
03/30/2005 09:11:42.703 - TAPI lineOpen error= LINEERR_INVALMEDIAMODE:
03/30/2005 09:11:42.703 - Open on line 0 failed with TAPI error "Invalid media mode"
03/30/2005 09:11:42.703 - attempting open with media mode [LINEMEDIAMODE_AUTOMATEDVOICE] and privilege [LINECALLPRIVILEGE_MONITOR, LINECALLPRIVILEGE_OWNER]
03/30/2005 09:11:42.734 - Handle = $10391
03/30/2005 09:11:42.734 - Port Name = "COM3"
03/30/2005 09:11:42.734 - Device id = $0
03/30/2005 09:11:42.734 - Opened line id 0
Suggestions?
As it stands, Caller calls in during business hours, gets a please hold wav file, then music. Music plays for about 3-4 seconds and dies. Is there a time limit for how long a wav file can be?
CID plays about 4 second of the file and kicks out error:
3/30/2005 09:11:41 AM - Script problem: Could not play sound over phone because Could not play wave file "C:\Program Files\Ascendis Software\Caller ID\HoldMusic\City_Stroll_8_bit_mono_11k.wav" PhoneSound ('C:\Program Files\Ascendis Software\Caller ID\HoldMusic\City_Stroll_8_bit_mono_11k.wav'); [line 4, column 1]
3/30/2005 09:11:41 AM - Script has ended, but call is still connected -- disconnecting
3/30/2005 09:11:42 AM - waveOutOpen() -- The specified device is already in use. Wait until it is free, and then try again.
3/30/2005 09:11:42 AM - Script problem: Could not play sound over phone because Could not play wave file "C:\Program Files\Ascendis Software\Caller ID\HoldMusic\City_Stroll_8_bit_mono_11k.wav" PhoneSound ('C:\Program Files\Ascendis Software\Caller ID\HoldMusic\City_Stroll_8_bit_mono_11k.wav'); [line 4, column 1]
3/30/2005 09:11:42 AM - Script has ended, but call is still connected -- disconnecting
Line Monitor:
03/30/2005 09:11:42.140 - TAPI device=$0 event=LINE_REPLY
03/30/2005 09:11:42.140 - LINE_REPLY: (FLine)
03/30/2005 09:11:42.140 - TAPI $10291 success
03/30/2005 09:11:42.140 - TLineSink.OnLineReply
03/30/2005 09:11:42.687 - Reopening U.S. Robotics 56K Voice PCI
03/30/2005 09:11:42.703 - attempting open with media mode [LINEMEDIAMODE_INTERACTIVEVOICE, LINEMEDIAMODE_AUTOMATEDVOICE] and privilege [LINECALLPRIVILEGE_MONITOR, LINECALLPRIVILEGE_OWNER]
03/30/2005 09:11:42.703 - TAPI lineOpen error= LINEERR_INVALMEDIAMODE:
03/30/2005 09:11:42.703 - Open on line 0 failed with TAPI error "Invalid media mode"
03/30/2005 09:11:42.703 - attempting open with media mode [LINEMEDIAMODE_INTERACTIVEVOICE] and privilege [LINECALLPRIVILEGE_MONITOR, LINECALLPRIVILEGE_OWNER]
03/30/2005 09:11:42.703 - TAPI lineOpen error= LINEERR_INVALMEDIAMODE:
03/30/2005 09:11:42.703 - Open on line 0 failed with TAPI error "Invalid media mode"
03/30/2005 09:11:42.703 - attempting open with media mode [LINEMEDIAMODE_AUTOMATEDVOICE] and privilege [LINECALLPRIVILEGE_MONITOR, LINECALLPRIVILEGE_OWNER]
03/30/2005 09:11:42.734 - Handle = $10391
03/30/2005 09:11:42.734 - Port Name = "COM3"
03/30/2005 09:11:42.734 - Device id = $0
03/30/2005 09:11:42.734 - Opened line id 0
Suggestions?