Skip to main content
Senior
Oct 29, 2025 11:32 AM UTC
Solved

USB microphone example with USBX

Hi,

Could you please let me know if you’re planning to provide an example of a USB Audio device based on USBX in the near future?

By the way, the ST X-CUBE-AUDIO package is based on TinyUSB that is not officially supported. I’m wondering whether it’s feasible to implement a USB microphone using USBX instead.

Regards.

This topic has been closed for replies.
FBLBest answer
ST Technical Moderator
Oct 29, 2025 1:55 PM UTC

Hi @ERROR 

X-CUBE-AUDIO-Kit is supporting TinyUSB and USBX including usbCls : 

  • usbCls_audio_play() to read speaker data from USB.
  • usbCls_audio_rec() to write microphone data to USB.
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL

2 replies

FBLBest answer
ST Technical Moderator
Oct 29, 2025 1:55 PM UTC

Hi @ERROR 

X-CUBE-AUDIO-Kit is supporting TinyUSB and USBX including usbCls : 

  • usbCls_audio_play() to read speaker data from USB.
  • usbCls_audio_rec() to write microphone data to USB.
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
ERRORAuthor
Senior
Oct 30, 2025 7:22 AM UTC

Hi @FBL ,

Thank you indeed for your swift and precise answer!

Regards.