Using PlatformIO - pschatzmann/stm32f411-i2s Wiki

Here is an example platformio.ini file:

[env:blackpill_f411ce]
platform = ststm32
board = blackpill_f411ce
framework = arduino
lib_deps = 
    https://github.com/pschatzmann/arduino-audio-tools 
    https://github.com/pschatzmann/stm32f411-i2s.git

debug_tool = stlink
upload_protocol = stlink
monitor_speed = 115200