Realtime_AudioDenoise_EchoCancellation icon indicating copy to clipboard operation
Realtime_AudioDenoise_EchoCancellation copied to clipboard

Any API for AEC in this project?

Open HudsonHuang opened this issue 3 years ago • 1 comments

Hi, I only found API for denoise, but nothing for AEC: https://github.com/Turing311/Realtime_AudioDenoise_EchoCancellation/blob/74b94889aea377c05659aeef400aff795377a8be/main.c#L142

For "Echo Cancellation", there should be 2 input signal to the model: mic and referrance signal, like this in DTLN-aec

Did you support AEC model in this project? If not, any plan for it? In both case, thank you for your work, it was elegant.

HudsonHuang avatar Mar 31 '21 08:03 HudsonHuang

Would be interesting if a C AEC manages the 512 block length model on a Pi3

You can stream I guess also with

void tflite_create(trg_engine* engine)
void trg_denoise(trg_engine* engine, float* samples, float* out, int sampleCount)
void tflite_destroy(trg_engine* engine)

Would that load the engine each chunk?

Anyway would be great if maybe it coupled with https://github.com/orazdow/PortAudio-Wrapper or an ALSA lib and just play back on sudo modprobe snd-aloop so its a source again.

StuartIanNaylor avatar May 25 '22 04:05 StuartIanNaylor