So given the ESP32 aspect, is there also Android support? Such that it could then be used for an interactive door bell?
Everything else from traditional GNU/Linux userspace is a matter of luck if it happens to work across devices, or updates, because it is not part of the oficial NDK APIs.
You need to plug into OpenSL ES or AAudio, https://developer.android.com/ndk/guides/audio
I definitely need to test on Android and maybe I need to add some extra hooks. Thanks!