Hi:
I would like to ask if I encountered a problem when I was about to perform real-time processing validation. I extracted 128 corresponding data from two. sw files and processed them for echo cancellation, resulting in very small values around 0, which is different from the results obtained using. sw files for processing.I don't know why this is happening.
Test code:
ifdef HAVE_CONFIG_H
include "config.h"
endif
include "speex/speex_echo.h"
include "speex/speex_preprocess.h"
include
include
include <sys/types.h>
include <sys/stat.h>
include
include
define NN 128
define TAIL 1024
int test(short echo_buf[], short ref_buf[],short e_buf[])
{
SpeexEchoState st;
SpeexPreprocessState den;
int sampleRate = 8000;
As mentioned above, I have found that once using “speex preprocess run (den, e_buf)"; It will change the results to all values around 0 or 0, and not using it is good
Hi: I would like to ask if I encountered a problem when I was about to perform real-time processing validation. I extracted 128 corresponding data from two. sw files and processed them for echo cancellation, resulting in very small values around 0, which is different from the results obtained using. sw files for processing.I don't know why this is happening.
Test code:
ifdef HAVE_CONFIG_H
include "config.h"
endif
include "speex/speex_echo.h"
include "speex/speex_preprocess.h"
include
include
include <sys/types.h>
include <sys/stat.h>
include
include
define NN 128
define TAIL 1024
int test(short echo_buf[], short ref_buf[],short e_buf[]) { SpeexEchoState st; SpeexPreprocessState den; int sampleRate = 8000;
}
int main(){ short a[128] = {76, -112, -42, -66, -86, 38, 30 ,92, 143 ,36, -85, -58, -34, -54, -61, -111, 51, 156, 51, -90, -223, -23 ,88, 11, 46, -2, 8, -99, -74, 192, 22, -105, 12, -83, 127 ,274 ,-42, 33, 9, -38 ,6, -129, 169, -103, -142 ,302, -168, -4 ,137 ,-280, 73, 124, -29 ,168 ,105, -64, -21, 52, -121, -78 ,67, -50 ,43, 70, -1, -14 ,-36, 188, -94, -366, 64 ,23 ,2, 189, -2, 26, 46, -100, -43 ,-23 ,-45, -15 ,-38, 85,179, 32, -110, -64 ,26, 0 ,55, -50, -93, 81, -93, -35, 99, -61, -35 ,-67, 22 ,41, -61 ,76, 5, -152, -19, 129, -91, 28 ,232, -42, 8, -45, -183 ,-45, -17, 11 ,110 ,76 ,-86, 66, -17, -163, 249 ,135, -65, 128};
}