Other Parts Discussed in Thread: TEST2
Hi,
I'm trying to integrate with the g722 library from TI on my dm8168.I find the g722 lib(Version 2.00.00.000) can encode the 16k pcm data to 64kbps data currectly,but it can’t encode 16k pcm data to 48k/56k bps data currectly. there are the test config as follows:
test1:
- g722_64k config:
tablesPtr = NULL;
codecSelection = ISPEECH1_G722_CODECSELECT_NONITUMODE;
bitRate = ISPEECH1_G722_BITRATE_RATE0;
inBuf.bufSize = 320 * 2;
outBuf. bufSize = 160;
2. g722_56k config:
tablesPtr = NULL;
codecSelection = ISPEECH1_G722_CODECSELECT_NONITUMODE;
bitRate = ISPEECH1_G722_BITRATE_RATE1;
inBuf.bufSize = 160 * 2;
outBuf. bufSize = 140;
3. g722_48k config:
tablesPtr = NULL;
codecSelection = ISPEECH1_G722_CODECSELECT_NONITUMODE;
bitRate = ISPEECH1_G722_BITRATE_RATE2;
inBuf.bufSize = 160 * 2;
outBuf. bufSize =120;
I find the g722_64k config can encode one frame audio data( 320 samples) to 160 Byte,and The 160 Byte bitstream can be expanded to PCM (320 samples)currectly.But the g722_56k config and g722_48k config can’t .
test2:
I set g722_56k ,g722_48k all of the config to be the same to the g722_64k config,except the bitrate.
- g722_64k config:
tablesPtr = NULL;
codecSelection = ISPEECH1_G722_CODECSELECT_NONITUMODE;
bitRate = ISPEECH1_G722_BITRATE_RATE0;
inBuf.bufSize = 320 * 2;
outBuf. bufSize = 160;
2. g722_56k config:
tablesPtr = NULL;
codecSelection = ISPEECH1_G722_CODECSELECT_NONITUMODE;
bitRate = ISPEECH1_G722_BITRATE_RATE1;
inBuf.bufSize = 320 * 2;
outBuf. bufSize = 160
3. g722_48k config:
tablesPtr = NULL;
codecSelection = ISPEECH1_G722_CODECSELECT_NONITUMODE;
bitRate = ISPEECH1_G722_BITRATE_RATE2;
inBuf.bufSize = 320 * 2;
outBuf. bufSize =160;
I find the g722_64k config, g722_56k config, g722_48k config can all encode 16k pcm data ( 320 samples one frame) to 64kbps data currectly, and The bitstream can be expanded to PCM (320 samples)currectly.
So my question is whether the g722 lib (Version 2.00.00.000) support Compressing linear 16k PCM into 56/64Kbps?
Thanks,
sunfarmer
