I have an AlexaPi running, but I also want a voice activated (and controlled) radio machine.
The radio part is sorted, and so is the AlexaPi, but there is a problem.
Running them both at ones presents me with the error
alsaaudio.ALSAAudioError: Device or resource busy.
I have considered moving them into the same file but that would be very difficult, considering the AlexaPi is GPIO activated.
Is it possible to use the mic in the two places at once?
One is always listening, the other isn't.
if that can't be done, could it be possible to, when I push the GPIO button to make the AlexaPi listen, have it take control of the mic for the duration of the button being pushed, then return it to the other?