Noob question on Audio + Noise in Matlab

Status
Not open for further replies.

cppc

Newbie level 1
Joined
Dec 18, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,289
So I have two files: an audio file recorded in a (assumed) perfectly quiet room, and a real noise file recorded on street. I want to simulate the real noise condition at different SNR. I measure the power of the audio and noise, and based on that I assign a factor R to noise to achieve the desired SNR. Basically:

Mix Signal = Audio Signal + Noise * R

My main questions are:

1. Is the method I use valid?

2. When I write the Mix Signal in Matlab, it is automatically clipped to the range from -1 to 1. I know I can normalize the Mix Signal to the range from -1 to 1 before using wavwrite, but which way is better/more accurate for my task?

Thanks, I appreciate all the help.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…