Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

Experiment 1

Name: Yash Shirude

UID: 2021200109

Class: EXTC S2

Date: 30/1/2024

Table of Contents
AIM:.......................................................................................................................................................................... 1
Software used:..........................................................................................................................................................1
Code:........................................................................................................................................................................ 1
Vowels:..................................................................................................................................................................1
A:...................................................................................................................................................................... 1
E:...................................................................................................................................................................... 2
I:........................................................................................................................................................................3
O:...................................................................................................................................................................... 5
U:...................................................................................................................................................................... 6
Consonants:..........................................................................................................................................................8
B:...................................................................................................................................................................... 8
D:...................................................................................................................................................................... 9
G:.................................................................................................................................................................... 10
P:.................................................................................................................................................................... 11
T:.....................................................................................................................................................................12
Conclusion:............................................................................................................................................................. 13

AIM:
Apply Speech Production techniques onm recorded data.

Software used:
Matlab

Code:
Vowels:
A:

figure(1)
[y,Fs]=audioread('a.wav');
plot(y)
ylim([-0.1 0.1]);
xlim([13000 30000]);
xlabel('Sample Number');
ylabel('Amplitude');
title("Plot of utterance of vowel 'A' ");
Hpsd=pwelch(y);

1
plot(Hpsd);
xlabel('Frequency');
ylabel('Power');
title("PSD of Vowel 'A' ");
xlim([0 3000]);

E:

figure(1)
[y,Fs]=audioread('e.wav');
plot(y, 'R')
ylim([-1.25 1.25]);

2
xlim([25000 30000]);
xlabel('Sample Number');
ylabel('Amplitude');
title("Plot of utterance of vowel 'E' ");
Hpsd=pwelch(y);
plot(Hpsd, 'R');
xlabel('Frequency');
ylabel('Power');
title("PSD of Vowel 'E' ");
xlim([0 3000]);

I:

3
figure(1)
[y,Fs]=audioread('i.wav');
plot(y, 'G')
ylim([-0.25 0.25]);
xlim([13000 30000]);
xlabel('Sample Number');
ylabel('Amplitude');
title("Plot of utterance of vowel 'I' ");
Hpsd=pwelch(y);
plot(Hpsd, 'G');
xlabel('Frequency');
ylabel('Power');
title("PSD of Vowel 'I' ");
xlim([0 3000]);

4
O:

figure(1)
[y,Fs]=audioread('o.wav');
plot(y, 'M')
ylim([-0.2 0.2]);
xlim([13000 30000]);
xlabel('Sample Number');
ylabel('Amplitude');
title("Plot of utterance of vowel 'O' ");
Hpsd=pwelch(y);

5
plot(Hpsd, 'M');
xlabel('Frequency');
ylabel('Power');
title("PSD of Vowel 'O' ");
xlim([0 3000]);

U:

figure(1)
[y,Fs]=audioread('u.wav');
plot(y, 'K')
ylim([-0.2 0.2]);

6
xlim([13000 30000]);
xlabel('Sample Number');
ylabel('Amplitude');
title("Plot of utterance of vowel 'U' ");
Hpsd=pwelch(y);
plot(Hpsd, 'K');
xlabel('Frequency');
ylabel('Power');
title("PSD of Vowel 'U' ");
xlim([0 3000]);

7
Consonants:
B:

figure(1)
[y,Fs]=audioread('b.wav');
plot(y)
ylim([-1.25 1.25]);
xlim([50000 60000]);
xlabel('Sample Number');
ylabel('Amplitude');
title("Plot of utterance of vowel 'B' ");
Hpsd=pwelch(y);
plot(Hpsd);
xlabel('Frequency');
ylabel('Power');
title("PSD of Vowel 'B' ");
xlim([0 200]);

8
D:

figure(1)
[y,Fs]=audioread('d.wav');
plot(y, 'r')
ylim([-1.25 1.25]);
xlim([35000 50000]);
xlabel('Sample Number');
ylabel('Amplitude');
title("Plot of utterance of vowel 'D' ");
Hpsd=pwelch(y);
plot(Hpsd, 'r');
xlabel('Frequency');
ylabel('Power');
title("PSD of Vowel 'D' ");

9
xlim([0 300]);

G:

figure(1)
[y,Fs]=audioread('g.wav');
plot(y, 'g')
ylim([-0.2 0.2]);
xlim([15000 35000]);
xlabel('Sample Number');
ylabel('Amplitude');
title("Plot of utterance of vowel 'G' ");
Hpsd=pwelch(y);
plot(Hpsd, 'g');
xlabel('Frequency');
ylabel('Power');

10
title("PSD of Vowel 'G' ");
xlim([0 3500]);

P:

figure(1)
[y,Fs]=audioread('p.wav');
plot(y, 'g')
ylim([-0.7 0.7]);
xlim([45000 60000]);
xlabel('Sample Number');
ylabel('Amplitude');
title("Plot of utterance of vowel P ");
Hpsd=pwelch(y);
plot(Hpsd, 'g');
xlabel('Frequency');
ylabel('Power');

11
title("PSD of Vowel 'p' ");
xlim([0 400]);

T:

figure(1)
[y,Fs]=audioread('t.wav');
plot(y, 'k')
ylim([-0.2 0.2]);
xlim([20000 40000]);
xlabel('Sample Number');
ylabel('Amplitude');
title("Plot of utterance of vowel 'T' ");
Hpsd=pwelch(y);
plot(Hpsd, 'k');
xlabel('Frequency');

12
ylabel('Power');
title("PSD of Vowel 'T' ");
xlim([0 400]);

Conclusion:
• Through this experiment, I have about the utterance characteristics of various vowels and
consonants.
• The waveform plot showed the variation in sound's intensity and PSD plots displayed the
distribution of power across frequencies.
• This experiment helped me analye and visualize the characteristics of different speech sounds,
providing valuable insights into their acoustic properties.

13

You might also like