Forums

C- code for G.723.1 and LSP coefficients, gain, ...

Started by setumi71 November 20, 2003
Hi,
I have downloaded c code for the codec (it is attached
with G.723.1 annex A, the version with fixed point).
How to find the coefficients LSP, the values of gain, amplitude of
the frames?
I find attached the code a vector sequence test, but there is no a
help on using these files!
The test vectors for the encoder input use the extension .TIN (for
Test vector INput signal).
The test vectors for the decoder input use the extension .TCO (for
Test vector of COded parameters).
The reference files for the encoder output use the extension .RCO
(for Reference for COded parameters).
It is necessary to compare the file .TCO with the file .RCO.
I don't succeed in opening (to read) these files?
Do you know the way?
I have need of consistent dataset to make a training of a neural
network.
Thanks!!!
Best regards,
Giovy




hi Giovy

It is not necessary to compare the .TCO files with the .RCO files. They are
essentially the same files. This makes sense since .RCO file is the output
of the encoder (ie the encoded bitstream) and .TCO is the input to the
decoder (ie the bitstream to be decoded).

> I don't succeed in opening (to read) these files?
well, that is strange ! Are you talking abt "fread"? please elaborate a bit
on this query.. or are you trying to listen to the input speech? note that
you can play the TIN files (input speech signal) using Cool-Edit or some
similar tool. The TIN files are simply 16 bit PCM samples at 8 KHz.

>How to find the coefficients LSP, the values of gain, amplitude of
>the frames?

For this you need to study the code and locate the respective modules to tap
the values that you want. The code contains plenty of comments, so I guess
that should not be a problem.

hope that helps.
regards,
Sameer -----Original Message-----
From: setumi71 [mailto:]
Sent: Thursday, November 20, 2003 4:26 PM
To:
Subject: [speechcoding] C- code for G.723.1 and LSP coefficients, gain,
... Hi,
I have downloaded c code for the codec (it is attached
with G.723.1 annex A, the version with fixed point).
How to find the coefficients LSP, the values of gain, amplitude of
the frames?
I find attached the code a vector sequence test, but there is no a
help on using these files!
The test vectors for the encoder input use the extension .TIN (for
Test vector INput signal).
The test vectors for the decoder input use the extension .TCO (for
Test vector of COded parameters).
The reference files for the encoder output use the extension .RCO
(for Reference for COded parameters).
It is necessary to compare the file .TCO with the file .RCO.
I don't succeed in opening (to read) these files?
Do you know the way?
I have need of consistent dataset to make a training of a neural
network.
Thanks!!!
Best regards,
Giovy