Skip to main content
MGogr.1
Senior
Dec 28, 2021 4:54 AM UTC
Question

Does anyone know software which can convert my audio .wav file to C code? I'm trying to use i2s on my stm32 board but the output i am getting is gibberish audio. Currently I have used Wav to code software but i'm not satisfied with it.

..

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
Dec 28, 2021 6:09 AM UTC

C code, or an array of bytes/words?

Should be a couple of minutes coding with STDIO file functions on your host PC​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
MGogr.1
MGogr.1Author
Senior
Dec 28, 2021 6:43 AM UTC

An array of bytes.

i want to use i2s function which requires array of music file. How that can be done STDIO file? I didnt understood.

MM..1
Super User
Dec 28, 2021 12:09 PM UTC

When you dont understand coding for PC open file ... read ... write .. close

try What is Bin2c (segger.com) or other utils