Speex Transcoding to ulaw/alaw

Hi People,

I have speex 1.2beta3 installed in my server and asterisk 1.4.2, now I want to transcode from speex to ulaw or alaw but I have problems with this…

What happens is that the end using ulaw/alaw hears very clearly, but the end using speex only gets some weird noise… so I’m guessing the re-encoding into speex not working well.

I’m not a sound processing expert so CBR,VBR and the other parameters don’t really mean much to me, maybe someone here can give a hand at WHAT CONFIG COULD [BASICALLY] BE A “STANDARD” CONFIG I CAN GET SOME USABILITY TO START WITH?

The following is my speex.conf:

[speex]
quality => 3

complexity => 0

enhancement => true

vad => true

vbr => false

abr => 0

vbr_quality => 0

dtx => true

preprocess => false

pp_vad => false

pp_agc => false
pp_agc_level => 8000

pp_denoise => false

pp_dereverb => false
pp_dereverb_decay => 0.4
pp_dereverb_level => 0.3

[plc]
genericplc => true

and this is show translation:


         g723   gsm  ulaw  alaw  g726 adpcm  slin lpc10  g729 speex  ilbc
   g723     -     -     -     -     -     -     -     -     -     -     -
    gsm     -     -     2     2     2     2     1     4     -    31    49
   ulaw     -     3     -     1     2     2     1     4     -    31    49
   alaw     -     3     1     -     2     2     1     4     -    31    49
   g726     -     3     2     2     -     2     1     4     -    31    49
  adpcm     -     3     2     2     2     -     1     4     -    31    49
   slin     -     2     1     1     1     1     -     3     -    30    48
  lpc10     -     4     3     3     3     3     2     -     -    32    50
   g729     -     -     -     -     -     -     -     -     -     -     -
  speex     -     4     3     3     3     3     2     5     -     -    50
   ilbc     -     4     3     3     3     3     2     5     -    32     -

Thanks for your help and time,

rantsh[/code]

Help anyone?