Using recording and playback stream with pyaudio and mic picking up speaker output is my only problem if I dont use a headset or push activated.
There seems to be software solutions to this like Pulseaudio but I can't be relying on installing and configuring that on multiple platforms. I was hoping to be able to find within python solution or examples.
I came across this (education?) instruction while searching for a solution but its a bit beyond me. https://tecnologias-multimedia.github.io/contents/echo_cancellation/