Sign in

username:

password:



Not a member?

Search speechcoding



Search tips

Subscribe to speechcoding



speechcoding by Keywords

ACELP | ADPCM | AMBE | AMR | AMR-NB | CELP | Codebook | DTMF | G.723 | G.726 | G.729 | GSM | Interpolation | LPC | LSF | LSP | MELP | PCM | Perceptual | Pitch | PSOL | QCELP | Quantization | SMV | VAD | Vocoder

Discussion Groups

Discussion Groups | Speech Coding | G726 testing

Technical discussions related to Speech Coding (all itu and other vocoders, ACELP, CELP, AMR, etc)

  

Post a new Thread

G726 testing - vija...@yahoo.co.in - Jul 25 8:03:54 2006



Hi All,
I am using reference G.726 code of ITU software tool library. I am now testing the code using
VC++. It is said that the reference code takes A-law or Mu-law coded input and outputs the
same, but the code takes 2 bytes of input( short ) and A-law coded should be one byte. I am
getting wrong output. can any one help in this regard??

Regards,
Vijay



(You need to be a member of speechcoding -- send a blank email to speechcoding-subscribe@yahoogroups.com )

Re: G726 testing - wu xudong - Jul 26 17:00:48 2006

Maybe 16 bit is OK.16 bit per sample means the raw
data.and G.726 should deal with it.I think it's no
need to tranfer input to A-law or u-law.
--- v...@yahoo.co.inдµÀ:

> Hi All,
> I am using reference G.726 code of ITU software tool
> library. I am now testing the code using VC++. It is
> said that the reference code takes A-law or Mu-law
> coded input and outputs the same, but the code takes
> 2 bytes of input( short ) and A-law coded should be
> one byte. I am getting wrong output. can any one
> help in this regard??
> 
> Regards,
> Vijay



(You need to be a member of speechcoding -- send a blank email to speechcoding-subscribe@yahoogroups.com )

RE: G726 testing - "Kumar, Sanjeev" - Jul 27 9:31:50 2006

Do the following:
for the input samples/data to the encoder.
for(i=0;i<smpno;i++)  //here smpno ==80 assuming 10 ms frame

inp_buf[i]=(0x3FFF & (inp_buf[i]>>2));

and after decoding i.e. at the decoder data which I assume goes in out_buf:

for(i=0;i<smpno;i++)

out_buf[i]=out_buf[i]<<2;

I hope it will give you the correct decoded outputs. here input should be 16 bit pcm if U are
using ITU code. Anyway you can see in the code what format it needs? Its very simple....
 
Sanjeev

________________________________

From: s...@yahoogroups.com [mailto:s...@yahoogroups.com] On Behalf Of wu xudong
Sent: Wednesday, July 26, 2006 7:30 AM
To: s...@yahoogroups.com
Subject: Re: [speechcoding] G726 testing

Maybe 16 bit is OK.16 bit per sample means the raw
data.and G.726 should deal with it.I think it's no
need to tranfer input to A-law or u-law.

--- v...@yahoo.co.in <mailto:vijaybyadgi%40yahoo.co.in> $B<LF;(B:

> Hi All,
> I am using reference G.726 code of ITU software tool
> library. I am now testing the code using VC++. It is
> said that the reference code takes A-law or Mu-law
> coded input and outputs the same, but the code takes
> 2 bytes of input( short ) and A-law coded should be
> one byte. I am getting wrong output. can any one
> help in this regard??
> 
> Regards,
> Vijay



(You need to be a member of speechcoding -- send a blank email to speechcoding-subscribe@yahoogroups.com )