By using the [Rec] button on the audio board, when the button is pressed, it will record and upload data to HTTP Stream, and when the button is released, it will stop recording, server will write all data to .wav file.
ESP32-LyraT | ESP32-LyraT-MSC |
---|---|
Prepare the Server:
- Require python 2.7 or higher.
- Connect the computer to same Wi-Fi network with ESP32 board.
- Run
python server.py
- place the fileserver.py
at root of this example, and make sure this directory is writable.
Configure the example:
- Select compatible audio board in
menuconfig
>Audio HAL
. - Set up the Wi-Fi connection by running
menuconfig
>Example Configuration
and filling inWiFi SSID
andWiFi Password
. - In the same menu set up server URI, for example
http://192.168.0.248:8000/upload
wherehttp://192.168.0.248
is the server LAN IP address.
Load and run the example:
- Speak to the board once prompted on the serial monitor.
- After finish, retrieve recorded file from directory where server is located.
- To stop the pipeline press [Mode] button on the audio board.