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