Skip to main content
Visitor II
May 6, 2025
Question

USB Audio class

  • May 6, 2025
  • 2 replies
  • 393 views

Hi,

I am using nucleo-l476RG board.

I am new to USB audio, I am trying to create USB Audio class (Speaker/MIC) using HAL. I am sucessfully able to create a node for speaker and MIC in my laptop. But unable to send and receive the data over USB. Can anyone suggest me any example or any documentation which can help me to achieve my goal.

Thanks 

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    May 6, 2025

    Hi @Vineet_872 

    You can leverage the X-CUBE-AUDIO-KIT and X-CUBE-AUDIO packages from STMicroelectronics. These packages provide a comprehensive set of tools and libraries for audio processing on STM32.

    Unfortunately, no example provided specifically for STM32L4 products but you can refer to examples provided for STM32G4 or STM32F4.

    Visitor II
    May 7, 2025

    Thanks for the response.

    I have check the library is not related to USB audio class.

    I am looking specifically USB audio class in device mode. Where I can send and receive the PCM sample over USB.

    Can you please suggest any example of any board by which I can achieve this. Currently I am looking into tinyUSB example for STM. But that is not working for us.

    Please provide any solution.

    thanks

    Technical Moderator
    May 7, 2025

    Hi again @Vineet_872 

    You can refer to Data brief, it supports USB audio class interface UAC 2.0.

    Audio kit implements USB for several classes that you can activate or deactivate:

    • AUDIO UAC2

    • CDC

    • HID

    • MIDI

    During development, you can add or remove some classes or change class features.

    You can find examples under this path: x-cube-audio-kit\Middlewares\ST\Audio-Kit\examples\livetunedataflow\References