voice-engine / ec

Echo Canceller, part of Voice Engine project
GNU General Public License v3.0
239 stars 68 forks source link

Raspberry + Bluetooth + Pulseaudio + ec, is it possible? #11

Open tonytan1701 opened 4 years ago

tonytan1701 commented 4 years ago

Hello, I’d like to ask if it is possible to use Bluetooth speaker for music playing and seeed-respeaker for recording. In this ec, sink and source are taken for the echo cancellation. I’m looking forward to using ec in Bluetooth speaker and looking forward to your reply.

0n3man commented 3 years ago

This is a great question. I have Rhasspy and Mopidy running on the same pi. I have a Respeaker 4-mic for audio input and I use bluetooth to connect to a mobile speaker. Hard to imagine not using a bluetooth speaker. Rhasspy is used to take in commands and send them to home assistant. Based on the command home assistant will turn on/off lights or direct Mopidy to play music. Without any music playing Rhasspy works great directing home assistant. However tell Mopidy, via Rhasspy and home assistance, to play music causes Rhasspy ability to hear. My system uses pulse audio. I installed ec and tried to get it working but when using a bluetooth speaker there isn't a hardware device to supply in the ec command. Any insight into how to address this would be much welcomed. Without some form of AEC it seems Rhasspy is very limited.