Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I want to amplify the sound I produced using soundsc in Matlab by raising the so

ID: 2072643 • Letter: I

Question

I want to amplify the sound I produced using soundsc in Matlab by raising the sound by a steady increase of dB. I am trying to make a hearing test so I need to increase the dB if the user cannot hear. Code:
fs = 8000; %sampling rate
dur = 3;
tt = 0 : 1/fs : dur; %time duration
f=1000; %frequency
vol= db2mag(1);
y=vol*sin(2*pi*f*tt);
soundsc( y, fsamp );

Where do I apply the dB? When I multiply it to the signal I do not notice a change.
Another issue, at certain frequencies my sound sounds extremely distorted such as at 20kHz and 30kHz. Why is this? And at certain higher frequencies my sound sounds like it is a lower frequency. For example, at 29kHz it sounds higher than 31kHz.

Explanation / Answer

Db value you have given is 1, in the function

Vol=db2mag(1)

Increase the value inside bracket.

About the second problem , sampling frequency should

Be increased enough so that fs= 2fm (atleast)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote