introlab / odas

ODAS: Open embeddeD Audition System
MIT License
800 stars 254 forks source link

Add AEC (Acoustic Echo Cancellation) #37

Open FrancoisGrondin opened 6 years ago

FrancoisGrondin commented 6 years ago

Need to add acoustic echo-cancellation for video-conference application (or voice commands when the device is playing music).

xiongyihui commented 6 years ago

@FrancoisGrondin I'm working an AEC project using SpeexDSP AEC algorithm. It can be used with ODAS as a file source. The structure is like:

+-------------------+  +-------------------+
|  PulseAudio       |  |  PulseAudio       |
|  module-pipe-source  |  module-pipe-sink |
+----------+--------+  +-------+-----------+
           |                   |             +------------+
           |                   |             |ALSA        |
           v                   v             |file plugin |
    +------+-------+    +------+-------+     +----+-------+
    |    FIFO      |    |    FIFO      |          |
    |/tmp/ec.output|    | /tmp/ec.input| <--------+
    +------+-------+    +------+-------+
           ^                   |
           |                   |
           |                   |
           |                   |
        +--+--+                |
        | AEC | <--------------+
        +--+--+                |
           ^                   |
           |                   v
    +------+-------+    +------+-------+
    |  hw:x,y      |    |  hw:x,y      |
    |  plughw:x,y  |    |  plughw:x,y  |
    +--------------+    +--------------+
FrancoisGrondin commented 6 years ago

@xiongyihui Thank you for the input! Will definitely look at it :)

jan4984 commented 6 years ago

any plan please?

FrancoisGrondin commented 6 years ago

This is something in the pipeline, but we are currently implementing other modules too! Doing our best to get something asap!

zuowanbushiwo commented 6 years ago

@FrancoisGrondin This project is great,with this We can do smart speakers ourselves. I am looking forward to your AEC。 thanks!

taospartan commented 6 years ago

I think this would be a great feature also!

jamesshao8 commented 6 years ago

I am also looking forward to this echo cancellation