Download Embedded SDK (Software Development Kit)

Transcript
Freescale Semiconductor, Inc.
Specifications
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
/* voice activity detection and confort noise generation */
Init_Coder(Channel1);
Init_Vad(Channel1);
Init_Cod_Cng(Channel1);
for (frames=0; frames<NUM_FRAMES; frames++)
{
if (!ReadSpeech((char *)EncodeSpeech, f_tstfile))
break;
for (i=0; i<EncodedFrame; i++) {
EncodeChannel[i] = 0;
}
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
Freescale Semiconductor, Inc...
Coder(Channel1,EncodeSpeech,EncodeChannel,True,True,CoderRate);
if (!ReadChannel((char *)DecodeChannel, f_tstfile))
break;
for (i=0; i<EncodedFrame; i++) {
if (DecodeChannel[i] != EncodeChannel[i]) {
BitErrors++;
}
}
}
close(f_tstfile);
}
MOTOROLA
G.723.1A Codec Library Interfaces
For More Information On This Product,
Go to: www.freescale.com
3-17