I successfully integrated speex aec in android (integrated in Android/frameworks/av/media/libeffects/preprocessing).
Echo was cancelling when I use sample rates 8k and 11k for capturing. But it is working worse as I go to higher capturing sample rates such as 16k, 22k, 32k and so on.
I am using speex resampler only to resample my input data. I don't know why the Echo is not cancelling with higher sample rates.
Can anyone explain the solution for this?