db = 10;
noisePower = sum(noiseSegment.^2);
cleanPower = sum(audio.^2);
K = (cleanPower/noisePower)*10^(-dB/10);
noiseSegment = noiseSegment .* sqrt(K); % Change Noise vector
noisyAudio = audio + noiseSegment;
sound(noisyAudio,adsTrainInfo.SampleRate)