MIC


In the Setup/Peripheral menu, the microphone selected under SPI will output what it hears to the UDP channel at the bitrate set there.
Currently, INMP441 is supported.

MIC@
Starts sending the stream to the outgoing UDP channel set in the Setup/Communication menu.

MIC(192.168.0.122:34550)@
Sends the stream to the address specified in the parentheses.

MIC!
Stops the broadcast.

On Windows, you can listen to the stream using the VLC program. The vlc.cmd simply starts it.
vlc.exe --demux=rawaud --rawaud-channels 1 --rawaud-fourcc s32b --rawaud-samplerate 16000 udp://@:8888

On Linux, the following commands can be used:
netcat -u -p 8888 -l | play -t raw -r 16000 -b 16 -c 2 -e signed-integer -
netcat -u -p 8888 -l | rec -t raw -r 16000 -b 16 -c 2 -e signed-integer - file.mp3



Examples

Remote access. It is recommended to use IDIP. In the router, on the transmitting side, forward the module's HTTP port and IP address, and on the receiving side, forward the stream UDP port and the IP address of the computer running VLC.
<!DOCTYPE html> <html> <body> <H1>MICROPHONE</H1><br> <button type="button" onclick="sendWS(startmic);">Start</button> <button type="button" onclick="sendWS(stopmic);">Stop</button> <br><br> <script type="text/javascript" src="tools.js"></script> <script> var startmic = "MIC(" + getIP() + ":8888)@"; var stopmic = "MIC!"; startWS(3); function getIP() { var xhttp = new XMLHttpRequest(); var str; xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { str = this.responseText; } }; xhttp.open("GET", "https://ifconfig.me/ip", false); xhttp.send(); return str; } </script> </body> </html>