Echo STT

EchoSTT is a voice-to-text service that sends local voice to the cloud server through the network, and returns the recognition result to the machine or other M5 devices. Click here to view the detailed usage document .

Timer Camera

Use TimerCAM to achieve low-power wake-up shooting function, which requires Wi-Fi connection. The captured pictures will be automatically uploaded to the M5 cloud, and a fixed HTTP interface will be generated through a unique token, and other devices can access the latest frame of pictures and the current battery voltage status of the device through this interface. Click here to view the detailed usage document .

Audio

Function Description

Use M5CORE2 to realize voice recording, remote transmission or saving to local TFCard, and playback. This function depends on Wi-Fi connection. The recorded audio will be forwarded through the M5 cloud, and a fixed API interface will be generated through a unique token. Another M5CORE2 device can obtain the latest recorded audio through the token.

Preparation:
1. Click here to refer to M5CORE2-UIFlow firmware burning tutorial to complete the firmware burning
2. Refer to the operation below , Connect the M5CORE2 device with UIFlow firmware burned to the PC, find the ATOM ECHO STT firmware in M5Burner, click GET TOEKN, and save the obtained TOKEN record for subsequent programming.

Microphone Record

Mic record init

  • Initialize the microphone

Mic record to server sec token xxx

  • Record the specified length of audio (unit: second), send the audio data to the corresponding token of the M5 cloud for storage

Mic record to file second sec file path

  • Record the audio of the specified length (unit: second), and store the audio data in the specified path of TFCard. (Need to insert TFCard before device startup, PATH format is: /sd/file_name.wav)

Audio Play

Init token xxx autoplay True

  • Initialize the Audio function, you can configure whether to automatically play the newly received audio.

Audio play

  • Play the latest audio, if there is no new audio, play the last content

Get audio state

  • Get the audio data status, True if there is new audio data, False if there is no new audio data

Audio deinit

  • Disable Audio function

Use Cases

Upload to cloud/Save TFCard

The program is implemented, sending audio data to the M5 cloud for storage under the corresponding token, supporting recording audio and saving to TFCard. And playing the audio that has been saved in TFCard through the Speaker.

Play cloud audio

The program realizes that the audio is obtained from the specified token and played automatically, and it can be played again by pressing the button on the screen.

Run the above programs to two M5 devices respectively, and trigger audio recording and playback by pressing the keys.

On This Page