Apart from the sketches that you can find in this directory, I recommend that you use the __USB audio functionality__ that is available for the STM3 See arduino-audio-tools/examples/examples-communication/usb