conversion of .txt to .wav using wavwrite

9 views (last 30 days)
Aparna
Aparna on 30 Apr 2012
I need to convert a .txt file comprising of a bitstream (16 bit values on a line) produced by a vhdl module to a .wav file . My project involves the encryption and decryption of speech carried out on an fpga and i intend to use wavwrite to produce the sound file from the encrpted data for simulation purposes. Any help would be appreciated . Thanks in advance.

Answers (1)

Daniel Shub
Daniel Shub on 30 Apr 2012
MATLAB documents the textscan and wavwrite functions pretty extensively.
doc textscan
doc wavwrite
  2 Comments
Aparna
Aparna on 30 Apr 2012
We read about the function wavwrite and used it but the conversion did not happen. We need help in creating a new workspace to which we can import the txt file into and then convert it using wavwrite. CAn you help us with this?
Daniel Shub
Daniel Shub on 1 May 2012
Maybe, if you edit your question to show what have you tried so far and to describe what you are seeing and what you expect to see.

Sign in to comment.

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!