embedblocks/i2s_spk

0.2.0

Latest
uploaded 1 week ago
Task-free I2S speaker (audio sink) component for ESP-IDF v6.0.x, built on the modern i2s_std driver. Application calls a blocking i2s_spk_send_buffer() to hand off pre-filled audio buffers; there is no internal FreeRTOS task and no TX-side application callback — the blocking call's return is the sole completion signal. Counts DMA underruns from the driver's own TX interrupt. Drives I2S DAC modules such as the PCM5102A (GY-PCM5102).

3 examples

  • loopback-dual-i2s
    This example captures audio with i2s_mic and relays it in real time to i2s_spk using separate I2S peripherals.
    8.57 KB
  • uart-bridge
    A PC-side Python script streams WAV audio to an ESP32, which plays it through an I2S DAC/amp.
    13.83 KB
  • usb-jtag
    Streams WAV audio from a PC to an ESP32 over native USB-Serial-JTAG for playback through an I2S DAC/amp.
    15.54 KB