Microphone uses built-in echo cancellation module from pulseaudio (you can still hear trigger and button clicks but not nearly as bad as without it)
Adds gain slider (default 13db to sound good during testing)
Makes a virtual sink with dynamically detachable mic (does not disturb recording)
Fix race condition bug I discovered which causes recording to restart right after turning it off due to the watchdog (Found by tailing the logs in SSH)
Fix some functions missing awaits
Move get-default-sink and get-default-source calls to infered @DEFAULT_SINK@ and @DEFAULT_SOURCE@ variables, I have not tested if this fixes when bluetooth dynamically connects but hopefully? needed to revert this, those variables are a bit buggy
Minor bug with the gain slider where it only updates the value to the previous one when you move... not sure how to fix that
Add ability to select microphone source, feature could potentially be duplicated over to the sink to allow choosing a sink, though not sure how useful that would be.
Fix some bugs, such as adding a 5 second wait before beginning capture on a fresh restart, as Pulseaudio is not ready. Otherwise the capture will have no sound
//14/04/2024
Make enhanced noise cancellation binary optional, give users instructions on how to install it
Move get-default-sink and get-default-source calls to infered @DEFAULT_SINK@ and @DEFAULT_SOURCE@ variables, I have not tested if this fixes when bluetooth dynamically connects but hopefully?needed to revert this, those variables are a bit buggyhttps://youtu.be/dl9q_3Hbm04
//13/04/2024
//14/04/2024