cancel
Showing results for 
Search instead for 
Did you mean: 

USB Audio class

Vineet_872
Associate II

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 

3 REPLIES 3
FBL
ST Employee

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.

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.


Vineet_872
Associate II

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

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

 

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.