I'm currently working on a door security project using an ESP32-CAM module, servo motor, PIR sensor, push button, and MAX4466 microphone. The setup streams the ESP32-CAM feed to an Android application, which includes controls for opening/closing the door via a servo motor.
I want to integrate the MAX4466 microphone to capture audio and send it to the Android app, where the audio can be played. My current question is:
- Should I capture and stream audio data from the microphone only when the push button is pressed and directly send the raw data to the Android app for processing and conversion to audio?
- Or would it be more efficient to process the audio data on the ESP32-CAM itself before sending it to the app?
On the Android side, I'm using a WebView to display the camera stream, along with buttons for servo control. Any starter code or advice on how to implement either of the above approaches would be really helpful!