miketeachman/micropython-i2s-examples

ESP32 with 32bitdepth not working

darkhandz opened this issue · 0 comments

I just set SAMPLE_SIZE_IN_BITS to 32, then it raised an exception, OSError: (-258, 'ESP_ERR_INVALID_ARG'), how to solve this?

Board: ESP-WROOM-32
MicroPython: MicroPython v1.19.1 on 2022-06-18; ESP32 module with ESP32

    # ======= AUDIO CONFIGURATION =======
    TONE_FREQUENCY_IN_HZ = 340
    SAMPLE_SIZE_IN_BITS = 32
    FORMAT = I2S.MONO  # only MONO supported in this example
    SAMPLE_RATE_IN_HZ = 48_000
    # ======= AUDIO CONFIGURATION =======