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 test vector problem

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

  

Post a new Thread

g726 test vector problem - mste...@yahoo.com - Dec 12 13:48:00 2005





Hello,

Thanks for your advice!
I was facing the problem of vector mismatch even after converting the test vectors from hex to binary.
The problem was generated by the C statement in the cvt_h_b.c needed to open the output file (converted binary file):

if ((Fo=fopen(outfil,WB))==NULL) KILL(outfil,3);

Using this statement, each 0x0A character in the output file is added an extra 0x0D charatacter (a carriage return is added to each new line character). That is, the converted file contains an extra 0x0D character for each 0x0A value.
To solve the problem I just replaced the WB, accordingly:

if ((Fo=fopen(outfil,"w+b"))==NULL) KILL(outfil,3);

Now the conversion works and all the test vectors produce correct output.

Thanks again for your time,

Best Regards,
mstelian.




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