How to convert audio file to C array to use in PSOC 6 project?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DhDa_2432241
Level 5
Level 5
5 likes given First like received First like given

Hello Community,

I've tried the I2S example(CE218636) on Psoc 6 platform (CYC8CKIT-062-WIFI-BT). It works well. I can hear 'Psoc Rocks' after pressing SW2 button. The audio file is converted to an array and is stored in wave.c file. How is this file generated?

I want to play my own sound tracks using Psoc 6 platform. I'm interested in knowing how to convert the sound files(mp3, wav) to an array to be used in Psoc 6 platform.

It would be nice to know how to reverse convert C array file to audio source to test the algorithm.

Thank you

Dheeraj

0 Likes
1 Solution
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

You can use this tool:

https://sourceforge.net/projects/bin2c/

It works with WAV audio file. It basically converts a binary tool to C array.

View solution in original post

0 Likes
1 Reply
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

You can use this tool:

https://sourceforge.net/projects/bin2c/

It works with WAV audio file. It basically converts a binary tool to C array.

0 Likes