Tuyaos/speaker

TuyaOS speaker playback via tkl_ao_* / tkl_ai_* and fs helpers. 喇叭、播放、MP3、tkl_ao、音频输出。

tuya Updated 3 repo stars

File contents

TuyaOS Speaker (tkl_ao / audio)

Demo: …/examples/driver_speaker/speaker_play.c (+ media assets)

Key APIs

Function Role
tkl_ai_init / tkl_ai_start / tkl_ai_set_vol audio system bring-up in demo
tkl_ao_set_vol / tkl_ao_put_frame output frames
tkl_fs_mount / tkl_fopen / tkl_fread read media from flash/sd
tkl_system_psram_malloc / _free decode buffers

Guidance

  1. Prefer adapting speaker_play.c rather than inventing a new audio stack.
  2. Confirm media location (inner flash vs SD) and volume with the user.
  3. Not TuyaOpen tdl_audio_* / tdl_audio_play.

tuya/tuyaopen-ide-manifests commit 225580567a

Frequently asked questions

npx get-skill add tuya/tuyaos-speaker