Displaying 1 result from an estimated 1 matches for "decodedaudio".
2012 Sep 30
0
Speex (in ios) really poor quality (and robotic) sound
...Buffers[0];
NSLog(@"Origin size: %lu", sourceBuffer.mDataByteSize);
int size = 0;
char *encodedAudio = encodeSpeex((spx_int16_t*) sourceBuffer.mData, sourceBuffer.mDataByteSize, &size);
NSLog(@"Encoded size: %i", size);
short* decodedAudio = decodeSpeex(encodedAudio, size, sourceBuffer.mDataByteSize);
free(encodedAudio);
memcpy(tempBuffer.mData, decodedAudio, FRAME_SIZE * 2);
free(decodedAudio);
}
Anyone would have any idea why I get so poor quality ? According to speex's sample on the websit...