forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
CircuitPython version and board name
Adafruit CircuitPython 10.0.3 on 2025-10-17; Seeed Xiao ESP32-S3 Sense with ESP32S3Code/REPL
import board
import audiocore
import audiobusio
audio = audiobusio.I2SOut(board.A2, board.A1, board.A0)
# An example of the samples. It's truncated (they're very long), but the same behaviour happened with anything I tried to play.
samples = array('h', [10390, 10470, 10410, 10230, 10020, 9890, 9920, 10150, 10390, 10440,...
raw_sample = audiocore.RawSample(samples, sample_rate=16000)
audio.play(recording, loop=False)
while audio.playing:
passBehavior
The code runs with no errors, but there is no audio output.
Description
This seems to happen with longer sample arrays, but I don't know exactly how long. This could be an issue with audiocore.RawSample(), instead.
Additional information
Testing the same hardware with code like the sine wave example from https://learn.adafruit.com/adafruit-circuit-playground-express/circuitpython-audio-out works fine. However, when I loop the audio (with loop=True in audio.play()), I can hear it fine.
Reactions are currently unavailable