Echo STT

EchoSTT is a voice-to-text service that sends local voice recordings to a cloud server via the internet and returns the transcription results to the local device or other M5 devices. Click here to view the detailed usage documentation .

Timer Camera

The TimerCAM enables a low-power, timed wake-up shooting feature, which depends on a Wi-Fi connection. The captured images are automatically uploaded to the M5 cloud, and a unique token is used to generate a fixed HTTP interface. Other devices can access this interface to obtain the latest image and the current battery voltage status of the device. Click here to view the detailed usage documentation .

Audio

Function Description

The M5CORE2 is used for voice recording, remote transmission, or saving to a local TF Card, with playback functionality. This feature depends on a Wi-Fi connection. Recorded audio is forwarded through the M5 cloud, and a unique token generates a fixed API interface. Another M5CORE2 device can use this token to access the latest recorded audio.

Preparation:
1. Click here to refer to the M5CORE2-UIFlow firmware burning tutorial and complete the firmware burning
2. Follow the steps below to connect the M5CORE2 device, which has been flashed with UIFlow firmware, to the PC. In M5Burner, find the ATOM ECHO STT firmware, click GET TOKEN, and save the obtained TOKEN for subsequent programming.

Firmware and Token Generation

Audio Functionality Overview

Microphone Record

Mic record init

  • Initializes the microphone.

Mic record to server sec token xxx

  • Records audio of a specified length (in seconds) and sends the audio data to storage under the corresponding token in the M5 cloud.

Mic record to file second sec file path

  • Records audio of a specified length (in seconds) and stores the audio data at the specified path on the TF Card. (The TF Card must be inserted before the device starts, and the PATH format is: /sd/file_name.wav).

Audio Play

Init token xxx autoplay True

  • Initializes the Audio function, which can be configured to automatically play newly received audio.

Audio play

  • Plays the latest audio. If there is no new audio, it plays the content from the last playback.

Get audio state

  • Gets the audio data state; True indicates that new audio data exists, False indicates there is no new audio data.

Audio deinit

  • Disables the Audio function.

Usage Case

Upload to Cloud/Save to TF Card

This program enables sending audio data to storage under the corresponding token in the M5 cloud, supports recording audio to the TF Card, and plays audio that has been saved on the TF Card through the Speaker.

Audio Recording and Cloud Upload

Play Cloud Audio

This program fetches and automatically plays audio from a specified token. Pressing the screen button can replay the audio.

Playing Cloud Audio

Run the above programs on two M5 devices respectively, and use the buttons to trigger audio recording and playback.

On This Page