Skip to content

usb_host_audio.USBIn module for microphones - #11547

Merged
tannewt merged 4 commits into
adafruit:mainfrom
FoamyGuy:usb_host_audio_2
Oct 15, 2026
Merged

tannewt merged 4 commits into
adafruit:mainfrom
FoamyGuy:usb_host_audio_2

Conversation

@FoamyGuy

@FoamyGuy FoamyGuy commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

The new object exposes a basic record() function, and supports the streaming protocol for use with other audio FX modules just like I2SIn.

One new error message is introduced: "%q not set in settings.toml" which is put in an exception raised when the user does not have CIRCUITPY_USB_HOST_ISO_BUFFER_SIZE declared in their settings. It could be the more generic "Buffer too small" instead and the accompanying python library which will be the typical way for end users to access cameras could catch it and be more specific. That approach would eliminate the only new string.

Only currently enabled for, and all testing performed on Fruit Jam

@FoamyGuy FoamyGuy changed the title New modul usb_host_audio.USBIn for microphones usb_host_audio.USBIn module for microphones Oct 9, 2026

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! This will be awesome to have. Did you consider splitting the isochronous input buffering from the audio portions of this? I'm not sure what other protocols use ISO endpoints.

Comment thread shared-bindings/usb_host_audio/USBIn.c
Comment thread tests/circuitpython-manual/usb_host_audio/usbin_record.py Outdated
Comment thread shared-module/usb_host_audio/USBIn.c
Comment thread shared-bindings/usb_host_audio/USBIn.c Outdated

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last thing about the settings.toml need.

Comment thread shared-bindings/usb_host_audio/USBIn.c Outdated

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt
tannewt enabled auto-merge October 14, 2026 23:32
@tannewt
tannewt merged commit ccea1c4 into adafruit:main Oct 15, 2026
690 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants