Skip to main content
Senior
October 29, 2025
Solved

USB microphone example with USBX

  • October 29, 2025
  • 2 replies
  • 236 views

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.

Best answer by FBL

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.

2 replies

FBLBest answer
Technical Moderator
October 29, 2025

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 Accept as Solution on the reply which solved your issue or answered your question.Best regards,FBL
ERRORAuthor
Senior
October 30, 2025

Hi @FBL ,

Thank you indeed for your swift and precise answer!

Regards.