conversion of .txt to .wav using wavwrite

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.

回答 (1 件)

Daniel Shub
Daniel Shub 2012 年 4 月 30 日

0 投票

MATLAB documents the textscan and wavwrite functions pretty extensively.
doc textscan
doc wavwrite

2 件のコメント

Aparna
Aparna 2012 年 4 月 30 日
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 2012 年 5 月 1 日
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.

サインインしてコメントする。

質問済み:

2012 年 4 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by