HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] how to play non-uLaw audio data



Allen Yang wrote:

>  now I want to play my voice message when some guy dial in. but I found my modem don't support uLaw raw audio data, it only support below audio data:
>at+vsm=?
>0,"8-Bit Linear",8,0,(4800,7200,8000,9600,11025),(0),(0)
>1,"16-Bit Linear",16,0,(4800,7200,8000,9600,11025),(0),(0)
>2,"4-Bit ADPCM",4,0,(4800,7200,8000,9600,11025),(0),(0)
>128,"8-Bit Linear",8,0,(4800,7200,8000,9600,11025),(0),(0)
>129,"16-Bit Linear",16,0,(4800,7200,8000,9600,11025),(0),(0)
>132,"4-Bit ADPCM",4,0,(4800,7200,8000,9600,11025),(0),(0)
>140,"CL1",8,0,(4800,7200,8000,9600,11025),(0),(0)
>141,"3-Bit ADPCM",3,0,(4800,7200,8000,9600,11025),(0),(0)
>
>OK
>
>so I change modem parameter as below: 
>ModemRingResponse: "AT+FCLASS=8\nAT+VSM=128\nAT+VLS=1\nAT+VTS=[933,,150]\nAT+VTX\n<waitfor:CONNECT><play:1><waitfor:OK>"
>ModemAnswerCmd: "<delay:100>AT+FCLASS=1;A"
>CallIDPattern: SHIELDED_DTMF
>CallIDAnswerLength: 4
>and translate audio data with command "sox test.wav -u -b -r 8000 -c1 play1.raw", unfortunately when i call my fax, i hear some noise. I appreciate any help, Thanks
>
>my version:4.2.5.3 compile from source
>  
>

Firstly, your use of "sox -u" is converting the WAV into unsigned
linear. I'm not sure about the "8-Bit Linear", but I do know that the
"16-Bit Linear" option refers to *signed* data... meaning "sox -s"
instead of "sox -u".

Secondly, if that still doesn't work I would try using other AT+VSM=n
options, as I would not completely trust the modem to be accurate about
which ones it truly supports. In other words, its claim to support
"8-Bit Linear" could be done in error. So try the others, too, if you've
no luck with it.

Lee.


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions