lwc:hardware:esp32:i2s

This is an old revision of the document!


I2S is the a protocol for streaming and seems like the best way to sample audio input.

  • Instructables example code: Does this code handle multiple reads? How do we know when a buffer is full and it's time to re-read it?
  • i2s full tutorial:does not address reading multiple times from analog input
  • Arduino library that seems to do magic but documentation for analog read and multiple buffers seems scant
  • Code from Google's AI bard that uses interrupts to know when the buffer is full. This is untested code.
    • bard offered these sources:
      • github.com/pion-labs/pion-educational-kits subject to license (MIT)
      • github.com/tanakamasayuki/Arduino_TensorFlowLite_ESP32 subject to license (Apache - 2.0)
      • github.com/eggfly/MusicCard subject to license (Apache - 2.0)
      • forum.arduino.cc/t/esp32-i2s-adc-read-two-inputs-possible/1032963
      • github.com/espressif/arduino-esp32/issues/4782
  • lwc/hardware/esp32/i2s.1682438177.txt.gz
  • Last modified: 2023/04/25 10:56
  • by John Harrison