# AMB82-mini audio auto-recording

**URL:** https://forum.amebaiot.com/t/amb82-mini-audio-auto-recording/4971
**Category:** Multimedia
**Tags:** rtl8735b, evb-amb82
**Created:** [August 4, 2026, 9:49pm UTC](https://forum.amebaiot.com/t/amb82-mini-audio-auto-recording/4971 "2026-08-04T21:49:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rkuo2000](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/rkuo2000/32/1105_2.png) [@rkuo2000](https://forum.amebaiot.com/u/rkuo2000)
#### Post date: [August 4, 2026, 9:49pm UTC](https://forum.amebaiot.com/t/amb82-mini-audio-auto-recording/4971/1 "2026-08-04T21:49:36Z")

</div>

Hi, I am working on a AI-toy reference design which requires audio auto-recording for listening and recording user’s speech (.mp4 will be sent to MLLM)

In Arduino, Examples\>AmebaMultimedia \> Audio \> AudioTriggerRecording

int currentVol = audio.micLevel();

if (currentVol \> TRIGGER\_VOL) { currentState = STATE\_RECORDING; }

the example use audio.micLevel() \> 7000 to detect the trigger,

is it possible to do auto recording starting from audio.micLevel()\>7000 to audio.micLevel()\< 1000

instead of setting recording duration of 3 ~ 5 seconds ?

what is the longest recording period ? maybe set LED flashing at the end of recording.

Your help will be very appreciated !

---

<div class="post-metadata">

### Author: ![M-ichae-l](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/m-ichae-l/32/33_2.png) [@M-ichae-l](https://forum.amebaiot.com/u/M-ichae-l)
#### Post date: [August 5, 2026, 6:11am UTC](https://forum.amebaiot.com/t/amb82-mini-audio-auto-recording/4971/2 "2026-08-05T06:11:37Z")

</div>

Hi @rkuo2000 ,

Thank you for your question and for sharing your use case.

The `AudioTriggerRecording` example is intended as a basic reference, so some customization may be needed for your application. In the meantime, we recommend taking a look at the **Audio API** and the **AudioTriggerRecording** example to become familiar with the available interfaces.

I will also look into your question and update you if I have any findings.

Thanks!

---

<div class="post-metadata">

### Author: ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)
#### Post date: [August 5, 2026, 6:35am UTC](https://forum.amebaiot.com/t/amb82-mini-audio-auto-recording/4971/3 "2026-08-05T06:35:51Z")

</div>

Hi @rkuo2000 ,

You may check out the provided `audio_trigger_recording_miclevel_based` example code to see if it fits your needs. The recording duration limit depends on the SD that you are using, for a FAT32 formatted SD card, a single recording file can’t exceed 4 GB, which is roughly equivalent to 550 hours.

Thank you.

[audio\_trigger\_recording\_miclevel\_based.zip](https://forum.amebaiot.com/uploads/short-url/p52jwfOb0Exx0ewzrgELNvHrvhA.zip) (2.1 KB)

---

<div class="post-metadata">

### Author: ![rkuo2000](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/rkuo2000/32/1105_2.png) [@rkuo2000](https://forum.amebaiot.com/u/rkuo2000)
#### Post date: [August 5, 2026, 7:09am UTC](https://forum.amebaiot.com/t/amb82-mini-audio-auto-recording/4971/4 "2026-08-05T07:09:05Z")

</div>

OK, I will ask AI to study those related codes 🙂
