Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top