conversion of .txt to .wav using wavwrite

3 vues (au cours des 30 derniers jours)
Aparna
Aparna le 30 Avr 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.

Réponses (1)

Daniel Shub
Daniel Shub le 30 Avr 2012
MATLAB documents the textscan and wavwrite functions pretty extensively.
doc textscan
doc wavwrite
  2 commentaires
Aparna
Aparna le 30 Avr 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 le 1 Mai 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.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by