LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-23-2021, 06:12 PM   #1
thatlinuxguy
LQ Newbie
 
Registered: Jul 2021
Posts: 2

Rep: Reputation: Disabled
Question Using PulseAudio and Bluez to capture real time audio


Hello, I am currently working on a noise cancelation project. One requirement of this project is to connect to two different Bluetooth headphones, get their data, and output filtered data back to them. In order to go about doing this, I need some help using PulseAudio and Bluez.

I've done some research on the two and know that PulseAudio is an A2DP server and Bluez handles everything Bluetooth-related. I also know you perform commands such as: aplay -D bluealsa /usr/share/scratch/Media/Sounds/Animal/Crickets.wav and bluealsa-aplay 64:BC:0C:F6:22:F8. But these are clearly not in real-time and wouldn't suffice for my current situation. I need to capture this audio data in real-time so I can perform noise cancelation on the incoming signals which the PulseAudio server will receive on my Pi3B which runs Raspbian. I'm trying to capture this data in Python and I think it's possible to do somehow using the PulseAudio API which I know can be accessed through Dbus. Any help would be truly appreciated and if you need more information I will gladly fill you in, thanks
 
Old 07-24-2021, 02:53 PM   #2
lovemeslk
Member
 
Registered: Feb 2020
Location: Rantoul IL
Distribution: Slackware
Posts: 350

Rep: Reputation: 72
you should look at how this project monitors audio with pulseaudio https://github.com/MaartenBaert/ssr.git
https://www.maartenbaert.be/simplesc...ng-game-audio/
first you need to sync pulseaudio and your devices through a single input and out put.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] pulseaudio, bluez, domoticz and users... i do not know what to do next Jinux75 Linux - Software 9 01-16-2020 02:38 AM
BlueZ forum - how to"configure " bluez ? AnneRanch Linux - Newbie 7 03-14-2019 03:36 PM
Capture support for dvd and video capture in linux is it even going to be real ever? maximalred Linux - Distributions 3 07-06-2003 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration