cancel
Showing results for 
Search instead for 
Did you mean: 

fp-aud-aec1 8khz audio

programmer131
Associate II

Can someone please guide me with 8KHz audio, echo cancellation is almost perfect for 16khz audio on stm32u5, but seems problematic at 8KHz, i've tested pass-through (loopback, mic connect to speaker) at 8Khz and it is clear when AEC is disabled, also when pre-processor is disabled and AEC is enabled, it can remove the echo but I need pre-processor for agc, ns related stuff.

#ifdef SPX_EC_FS_8000
  #define ECHO_BUFF 128U
  #define NN_MAX 128
  #define NN 128
  #define FS (uint16_t)8000
#elif defined (SPX_EC_FS_16000)
  #define ECHO_BUFF 128U
  #define NN_MAX 128
  #define NN 128
  #define FS (uint16_t)16000
#elif defined (SPX_EC_FS_32000)
  #define ECHO_BUFF (32*8)
  #define NN_MAX (32*8)
  #define NN (32*8)
  #define FS (uint16_t)32000
#elif defined (SPX_EC_FS_48000)

I've tried to change ECHO_BUFF to 64 as well, but no success so far, maybe this library isn't tested for 8KHz audio, but speexdsp support 8KHz, reason I'm trying to achieve aec at 8KHz is because VOCODER for audio compression supports only 8KHz.

 

0 REPLIES 0