(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
'''Message''' :
 +
 +
Cant make out what is being said.I feel that either the word society or suicide is being used.
 +
 +
 +
'''MATLAB CODE'''
 +
<pre>
 +
%Naman Anand Verma
 +
 +
% Program to open a wav file ,reverse it and write it as a new file .Then
 +
 +
% reduce the bitrate of the reverse file and write it again.
 +
 
clc;
 
clc;
 +
 
clear;
 
clear;
  
%Command used to read the wav file
+
% wavread command converts the .wav file to the digital signal data x[n]
 +
 
 +
[jpforward,srate,btrate] = wavread('H:\pu.data\Desktop\jpforward.wav');
 +
 
 +
 
 +
%wavplay command makes us listen to the digital signal x[n]
 +
 
 +
wavplay(jpforward,srate);
 +
 
 +
%commands to reverse the file
  
[jpforward,rate,bits] = wavread('jpforward.wav');
+
reverse_jp=flipud(jpforward);
  
% Command to use the flipud function
+
wavplay(reverse_jp,srate);
  
jpbackward = flipud(jpforward);
+
%command to write the file
  
%Command to play the file backwards
+
wavwrite(reverse_jp,srate,btrate,'H:\pu.data\Desktop\jpreverse.wav');
  
wavplay(jpbackward,rate);
+
%command to decrease the bit rate so the words sound slow.
  
sound(jpbackward,rate);
+
x=srate/2;
  
%Command to save the wav file
+
wavplay(reverse_jp,x);
  
 +
wavwrite(reverse_jp,x,btrate,'H:\pu.data\Desktop\slowjpreverse.wav');
 +
</pre>
  
wavwrite(jpbackward,rate,bits,jpbackward.wav');
+
File [[Media:Jpreverse_ECE301Fall2008mboutin.wav]]
 +
File [[Media:Slowjpreverse_ECE301Fall2008mboutin.wav]]

Latest revision as of 13:14, 5 September 2008

Message :

Cant make out what is being said.I feel that either the word society or suicide is being used.


MATLAB CODE

%Naman Anand Verma

% Program to open a wav file ,reverse it and write it as a new file .Then

% reduce the bitrate of the reverse file and write it again.

clc;

clear;

% wavread command converts the .wav file to the digital signal data x[n]

[jpforward,srate,btrate] = wavread('H:\pu.data\Desktop\jpforward.wav'); 


%wavplay command makes us listen to the digital signal x[n]

wavplay(jpforward,srate);

%commands to reverse the file

reverse_jp=flipud(jpforward);

wavplay(reverse_jp,srate);

%command to write the file

wavwrite(reverse_jp,srate,btrate,'H:\pu.data\Desktop\jpreverse.wav');

%command to decrease the bit rate so the words sound slow.

x=srate/2;

wavplay(reverse_jp,x);

wavwrite(reverse_jp,x,btrate,'H:\pu.data\Desktop\slowjpreverse.wav');

File Media:Jpreverse_ECE301Fall2008mboutin.wav File Media:Slowjpreverse_ECE301Fall2008mboutin.wav

Alumni Liaison

has a message for current ECE438 students.

Sean Hu, ECE PhD 2009