Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Super Contributor
technovlsi
Posts: 117
Registered: ‎01-30-2011
0

how to convert audio file to .coe file

sir , i want to convert audio file to .coe file so that i can instantiate it into coregen RAM.So that i have generated MATLAB code

But it wont works .Is there any other method to convert .wav file to .coe file or how i  will convert wave file into vhdl code .please help.

 

Expert Contributor
bassman59
Posts: 4,671
Registered: ‎02-25-2008
0

Re: how to convert audio file to .coe file


technovlsi wrote:

sir , i want to convert audio file to .coe file so that i can instantiate it into coregen RAM.So that i have generated MATLAB code

But it wont works .Is there any other method to convert .wav file to .coe file or how i  will convert wave file into vhdl code .please help.

 


You have to parse the WAV file, which means you read the header, determine where the data chunks start, then reading them, and writing them out in the proper .coe format. Or you could simply extract the data bytes and write them to a text file, which can be read using the textio functions in VHDL. 

 

But you'll need a bit of host programming skill. A python script will probably work for you.


----------------------------------------------------------------
Yes, I do this for a living.
Newbie
rebbecca
Posts: 1
Registered: ‎04-05-2012
0

Re: how to convert audio file to .coe file

hi pal, 

thanks pal, i was looking for the same issue of covertion of audio file, and found out here, i appreciate your work, great help....

 

Thanks 

Super Contributor
rourabpaul
Posts: 149
Registered: ‎08-13-2010
0

Re: how to convert audio file to .coe file

You can try matlab for audio to .coe file conversion

Research Fellow
University of Calcutta, India