SlideShare a Scribd company logo
1 of 8
Download to read offline
Page | 1
Project Name: Audio Signal processing
Basic Concepts:
Audio signal processing, sometimes referred to as audio processing, is the intentional
alteration of auditory signals, or sound, often through an audio effect or effects unit. As audio
signals may be electronically represented in either digital or analog format, signal
processing may occur in either domain.
Echo to simulate the effect of reverberation in a large hall or cavern, one or several delayed
signals are added to the original signal. To be perceived as echo, the delay has to be of order
35 milliseconds or above. Short of actually playing a sound in the desired environment, the
seffect of echo can be implemented using either digital or analog methods. Analog echo
effects are implemented using tape delays and/or spring reverbs. When large numbers of
delayed signals are mixed over several seconds, the resulting sound has the effect of being
presented in a large room, and it is more commonly called reverberation or reverb for short.
When a measurement is digitized, the number of bits used to represent the measurement
determines the maximum possible signal-to-noise ratio. This is because the minimum
possible noise level is the error caused by the quantization of the signal, sometimes
called Quantization noise. This noise level is non-linear and signal-dependent; different
calculations exist for different signal models. Quantization noise is modeled as an analog
error signal summed with the signal before quantization ("additive noise").This theoretical
maximum SNR assumes a perfect input signal. If the input signal is already noisy (as is
usually the case), the signal's noise may be larger than the quantization noise. Real analog-to-
digital converters also have other sources of noise that further decrease the SNR compared to
the theoretical maximum from the idealized quantization noise, including the intentional
addition of dither.Although noise levels in a digital system can be expressed using SNR, it is
more common to use Eb/No, the energy per bit per noise power spectral density.
The modulation error ratio (MER) is a measure of the SNR in a digitally modulated signal.
Signal-to-noise ratio (abbreviated SNR or S/N) is a measure used in science and engineering
that compares the level of a desiredsignal to the level of background noise. It is defined as the
ratio of signal power to the noise power, often expressed in decibels. A ratio higher than 1:1
(greater than 0 dB) indicates more signal than noise. While SNR is commonly quoted for
electrical signals, it can be applied to any form of signal (such as isotope levels in an ice
core or biochemical signaling between cells).The signal-to-noise ratio, the bandwidth, and
the channel capacity of a communication channel are connected by the Shannon–Hartley
theorem.Signal-to-noise ratio is sometimes used informally to refer to the ratio of
useful information to false or irrelevant data in a conversation or exchange. For example,
in online discussion forums and other online communities, off-topic posts and spam are
regarded as "noise" that interferes with the "signal" of appropriate discussion
Signal-to-noise ratio is defined as the ratio of the power of a signal (meaningful information)
and the power of background noise (unwanted signal):
Page | 2
where P is average power. Both signal and noise power must be measured at the same or
equivalent points in a system, and within the same system bandwidth.
If the variance of the signal and noise are known, and the signal is zero-mean:
Objectives: 1.Reduce the noise from the noisy file.
2. Create an echo filter to make a signal converting into echo signal.
MATLAB CODES:
%Part- A
[x,Fs]=audioread('noisy_speech.au');
sound(x,Fs)
n=1:length(x);
N=length(n);
X_f=fft(x); % fft() is used to convert X in discrete Fourier Transform
(DFT) of Vector X
x_f=fftshift(X_f);% shift zero frequency component to the center of
spectrum & swaps the left and right halves of X .
magH=abs(xf);
W=((2*n)/N)-1;
subplot(2,1,1);
plot(w,magH);
title('Magnitude Response') ;
ph=angle(x_f);
subplot(2,1,2);
plot(W,ph)
title ('Phase Response');
a=1;
y=filter(b,a,x);
sound(y)
X_f=fft(y);
x_f=fftshift(X_f);
magH=abs(x_f);
figure
w=((2*n)/N)-1;
subplot(2,1,1);
plot(w,magH);
title('Magnitude Response') ;
ph=angle(x_f);
subplot(2,1,2);
plot(w,ph)
title ('Phase Response');
Page | 3
Using fdatool to design a lowpass filter.
From fdatool we will export the vlue of ‘b’.
Outputs:
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
0
200
400
600
Magnitude Response
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
-4
-2
0
2
4
Phase Response
Page | 4
%part B
%delay = 0.375s and gain, a=0.5
[x,Fs]=audioread('speech.au');
T_d=0.375;
g=0.5;
d=round(T_d*Fs);
b=zeros(1,d+1);
a=1;
b(1)=1;
b(d+1)=g;
y=filter(b,a,x);
figure, freqz(y);
figure, impz(y(6800:7000));
sound(y,Fs)
Outputs:
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
0
200
400
600
Magnitude Response
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
-4
-2
0
2
4
Phase Response
0 20 40 60 80 100 120 140 160 180 200
-0.4
-0.3
-0.2
-0.1
0
0.1
0.2
0.3
n (samples)
Amplitude
Impulse Response
Page | 5
%delay = 0.375s and gain a=0.25
[x,Fs]=audioread('speech.au');
T_d=0.375;
g=0.25;
d=round(T_d*Fs);
b=zeros(1,d+1);
a=1;
b(1)=1;
b(d+1)=g;
y=filter(b,a,x);
figure, freqz(y);
figure, impz(y(6800:7000));
sound(y,Fs)
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-10
-5
0
5
x 10
4
Normalized Frequency ( rad/sample)
Phase(degrees)
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-50
0
50
100
Normalized Frequency ( rad/sample)
Magnitude(dB)
0 20 40 60 80 100 120 140 160 180 200
-0.15
-0.1
-0.05
0
0.05
0.1
0.15
0.2
n (samples)
Amplitude
Impulse Response
Page | 6
%delay = 0.375s and gain a=0.75
[x,Fs]=audioread('speech.au');
T_d=0.375;
g=0.75;
d=round(T_d*Fs);
b=zeros(1,d+1);
a=1;
b(1)=1;
b(d+1)=g;
y=filter(b,a,x);
figure, freqz(y);
figure, impz(y(6800:7000));
sound(y,Fs)
Outputs:
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-10
-5
0
5
x 10
4
Normalized Frequency ( rad/sample)
Phase(degrees)
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-50
0
50
100
Normalized Frequency ( rad/sample)
Magnitude(dB)
0 20 40 60 80 100 120 140 160 180 200
-0.4
-0.3
-0.2
-0.1
0
0.1
0.2
0.3
0.4
0.5
n (samples)
Amplitude
Impulse Response
Page | 7
%delay = 0.1s and 0.2s. withgain a= 0.5.
[x Fs]=audioread('speech.au');
T_d1= 0.1;
d1=round(T_d1*Fs);
g1=0.5;
T_d2= 0.2;
d2=round(T_d2*Fs);
b=zeros(1, d2+1);
b(1)=1;
b(d1+1)=g1;
b(d2+1)=g1;
a=[1];
y=filter(b, a, x);
figure, freqz(y);
figure, impz(y(6800:7000));
sound(y,Fs)
Outputs:
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-6
-4
-2
0
2
x 10
4
Normalized Frequency ( rad/sample)
Phase(degrees)
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-50
0
50
100
Normalized Frequency ( rad/sample)
Magnitude(dB)
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-10
-5
0
5
x 10
4
Normalized Frequency ( rad/sample)
Phase(degrees)
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-50
0
50
100
Normalized Frequency ( rad/sample)
Magnitude(dB)
Page | 8
Applications of this project:
Processing methods and application areas include storage, level compression, data
compression, transmission, enhancement (e.g., equalization, filtering, noise
cancellation,echo or reverb removal or addition, etc.)
Audio broadcasting
Traditionally the most important audio processing (in audio broadcasting) takes place just
before the transmitter. Studio audio processing is limited in the modern era due to digital
audio systems ( mixers, routers) being pervasive in the studio.
In audio broadcasting, the audio processor must
 prevent overmodulation, and minimize it when it occurs.
 compensate for non-linear transmitters, more common with medium
wave and shortwave broadcasting.
 adjust overall loudness to desired level.
 correct errors in audio levels .
0 20 40 60 80 100 120 140 160 180 200
-0.2
-0.15
-0.1
-0.05
0
0.05
0.1
0.15
0.2
0.25
0.3
n (samples)
Amplitude
Impulse Response

More Related Content

What's hot

OFDMA - Orthogonal Frequency Division Multiple Access PPT by PREM KAMAL
OFDMA - Orthogonal Frequency Division Multiple Access PPT by PREM KAMALOFDMA - Orthogonal Frequency Division Multiple Access PPT by PREM KAMAL
OFDMA - Orthogonal Frequency Division Multiple Access PPT by PREM KAMALprem kamal
 
Ec8352 signals and systems 2 marks with answers
Ec8352 signals and systems   2 marks with answersEc8352 signals and systems   2 marks with answers
Ec8352 signals and systems 2 marks with answersGayathri Krishnamoorthy
 
Wideband Frequency Modulation.pdf
Wideband Frequency Modulation.pdfWideband Frequency Modulation.pdf
Wideband Frequency Modulation.pdfArijitDhali
 
Boundary Extraction
Boundary ExtractionBoundary Extraction
Boundary ExtractionMaria Akther
 
A seminar on INTRODUCTION TO MULTI-RESOLUTION AND WAVELET TRANSFORM
A seminar on INTRODUCTION TO MULTI-RESOLUTION AND WAVELET TRANSFORMA seminar on INTRODUCTION TO MULTI-RESOLUTION AND WAVELET TRANSFORM
A seminar on INTRODUCTION TO MULTI-RESOLUTION AND WAVELET TRANSFORMमनीष राठौर
 
Du binary signalling
Du binary signallingDu binary signalling
Du binary signallingsrkrishna341
 
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...Waqas Afzal
 
SPIHT(Set Partitioning In Hierarchical Trees)
SPIHT(Set Partitioning In Hierarchical Trees)SPIHT(Set Partitioning In Hierarchical Trees)
SPIHT(Set Partitioning In Hierarchical Trees)M.k. Praveen
 
Digital Communication: Information Theory
Digital Communication: Information TheoryDigital Communication: Information Theory
Digital Communication: Information TheoryDr. Sanjay M. Gulhane
 
Wavelet based image fusion
Wavelet based image fusionWavelet based image fusion
Wavelet based image fusionUmed Paliwal
 
Linear block coding
Linear block codingLinear block coding
Linear block codingjknm
 
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNALSAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNALkaran sati
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING anam singla
 

What's hot (20)

OFDMA - Orthogonal Frequency Division Multiple Access PPT by PREM KAMAL
OFDMA - Orthogonal Frequency Division Multiple Access PPT by PREM KAMALOFDMA - Orthogonal Frequency Division Multiple Access PPT by PREM KAMAL
OFDMA - Orthogonal Frequency Division Multiple Access PPT by PREM KAMAL
 
Ec8352 signals and systems 2 marks with answers
Ec8352 signals and systems   2 marks with answersEc8352 signals and systems   2 marks with answers
Ec8352 signals and systems 2 marks with answers
 
Wideband Frequency Modulation.pdf
Wideband Frequency Modulation.pdfWideband Frequency Modulation.pdf
Wideband Frequency Modulation.pdf
 
Boundary Extraction
Boundary ExtractionBoundary Extraction
Boundary Extraction
 
Source coding systems
Source coding systemsSource coding systems
Source coding systems
 
Bit plane coding
Bit plane codingBit plane coding
Bit plane coding
 
A seminar on INTRODUCTION TO MULTI-RESOLUTION AND WAVELET TRANSFORM
A seminar on INTRODUCTION TO MULTI-RESOLUTION AND WAVELET TRANSFORMA seminar on INTRODUCTION TO MULTI-RESOLUTION AND WAVELET TRANSFORM
A seminar on INTRODUCTION TO MULTI-RESOLUTION AND WAVELET TRANSFORM
 
Lec17 sparse signal processing & applications
Lec17 sparse signal processing & applicationsLec17 sparse signal processing & applications
Lec17 sparse signal processing & applications
 
Du binary signalling
Du binary signallingDu binary signalling
Du binary signalling
 
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
 
SPIHT(Set Partitioning In Hierarchical Trees)
SPIHT(Set Partitioning In Hierarchical Trees)SPIHT(Set Partitioning In Hierarchical Trees)
SPIHT(Set Partitioning In Hierarchical Trees)
 
Image Quantization
Image QuantizationImage Quantization
Image Quantization
 
Digital Communication: Information Theory
Digital Communication: Information TheoryDigital Communication: Information Theory
Digital Communication: Information Theory
 
Wavelet based image fusion
Wavelet based image fusionWavelet based image fusion
Wavelet based image fusion
 
Linear block coding
Linear block codingLinear block coding
Linear block coding
 
Arithmetic Coding
Arithmetic CodingArithmetic Coding
Arithmetic Coding
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNALSAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
 
Receiver design
Receiver designReceiver design
Receiver design
 

Similar to Audio Signal Processing

Vidyalankar final-essentials of communication systems
Vidyalankar final-essentials of communication systemsVidyalankar final-essentials of communication systems
Vidyalankar final-essentials of communication systemsanilkurhekar
 
SignalDecompositionTheory.pptx
SignalDecompositionTheory.pptxSignalDecompositionTheory.pptx
SignalDecompositionTheory.pptxPriyankaDarshana
 
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLSComparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLSijsrd.com
 
20575-38936-1-PB.pdf
20575-38936-1-PB.pdf20575-38936-1-PB.pdf
20575-38936-1-PB.pdfIjictTeam
 
Analysis of PEAQ Model using Wavelet Decomposition Techniques
Analysis of PEAQ Model using Wavelet Decomposition TechniquesAnalysis of PEAQ Model using Wavelet Decomposition Techniques
Analysis of PEAQ Model using Wavelet Decomposition Techniquesidescitation
 
A_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdf
A_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdfA_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdf
A_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdfBala Murugan
 
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...Improving the Efficiency of Spectral Subtraction Method by Combining it with ...
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...IJORCS
 
Sampling tutorial
Sampling tutorialSampling tutorial
Sampling tutorialCut Lilis
 
An efficient peak valley detection based vad algorithm for robust detection o...
An efficient peak valley detection based vad algorithm for robust detection o...An efficient peak valley detection based vad algorithm for robust detection o...
An efficient peak valley detection based vad algorithm for robust detection o...csandit
 
AN EFFICIENT PEAK VALLEY DETECTION BASED VAD ALGORITHM FOR ROBUST DETECTION O...
AN EFFICIENT PEAK VALLEY DETECTION BASED VAD ALGORITHM FOR ROBUST DETECTION O...AN EFFICIENT PEAK VALLEY DETECTION BASED VAD ALGORITHM FOR ROBUST DETECTION O...
AN EFFICIENT PEAK VALLEY DETECTION BASED VAD ALGORITHM FOR ROBUST DETECTION O...cscpconf
 
An efficient peak valley detection based vad algorithm for robust detection o...
An efficient peak valley detection based vad algorithm for robust detection o...An efficient peak valley detection based vad algorithm for robust detection o...
An efficient peak valley detection based vad algorithm for robust detection o...csandit
 
Medical applications of dsp
Medical applications of dspMedical applications of dsp
Medical applications of dspkanusinghal3
 
129966863516564072[1]
129966863516564072[1]129966863516564072[1]
129966863516564072[1]威華 王
 

Similar to Audio Signal Processing (20)

Vidyalankar final-essentials of communication systems
Vidyalankar final-essentials of communication systemsVidyalankar final-essentials of communication systems
Vidyalankar final-essentials of communication systems
 
Final presentation
Final presentationFinal presentation
Final presentation
 
Adc dac
Adc dacAdc dac
Adc dac
 
SignalDecompositionTheory.pptx
SignalDecompositionTheory.pptxSignalDecompositionTheory.pptx
SignalDecompositionTheory.pptx
 
Oo2423882391
Oo2423882391Oo2423882391
Oo2423882391
 
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLSComparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
 
20575-38936-1-PB.pdf
20575-38936-1-PB.pdf20575-38936-1-PB.pdf
20575-38936-1-PB.pdf
 
Digital audio
Digital audioDigital audio
Digital audio
 
S@P Noise.pptx
S@P Noise.pptxS@P Noise.pptx
S@P Noise.pptx
 
Analysis of PEAQ Model using Wavelet Decomposition Techniques
Analysis of PEAQ Model using Wavelet Decomposition TechniquesAnalysis of PEAQ Model using Wavelet Decomposition Techniques
Analysis of PEAQ Model using Wavelet Decomposition Techniques
 
A_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdf
A_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdfA_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdf
A_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdf
 
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...Improving the Efficiency of Spectral Subtraction Method by Combining it with ...
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...
 
Sampling tutorial
Sampling tutorialSampling tutorial
Sampling tutorial
 
3D Spatial Response
3D Spatial Response3D Spatial Response
3D Spatial Response
 
t23notes
t23notest23notes
t23notes
 
An efficient peak valley detection based vad algorithm for robust detection o...
An efficient peak valley detection based vad algorithm for robust detection o...An efficient peak valley detection based vad algorithm for robust detection o...
An efficient peak valley detection based vad algorithm for robust detection o...
 
AN EFFICIENT PEAK VALLEY DETECTION BASED VAD ALGORITHM FOR ROBUST DETECTION O...
AN EFFICIENT PEAK VALLEY DETECTION BASED VAD ALGORITHM FOR ROBUST DETECTION O...AN EFFICIENT PEAK VALLEY DETECTION BASED VAD ALGORITHM FOR ROBUST DETECTION O...
AN EFFICIENT PEAK VALLEY DETECTION BASED VAD ALGORITHM FOR ROBUST DETECTION O...
 
An efficient peak valley detection based vad algorithm for robust detection o...
An efficient peak valley detection based vad algorithm for robust detection o...An efficient peak valley detection based vad algorithm for robust detection o...
An efficient peak valley detection based vad algorithm for robust detection o...
 
Medical applications of dsp
Medical applications of dspMedical applications of dsp
Medical applications of dsp
 
129966863516564072[1]
129966863516564072[1]129966863516564072[1]
129966863516564072[1]
 

More from Ahmed A. Arefin

Synchronous Generator Loading Characteristics
Synchronous Generator Loading CharacteristicsSynchronous Generator Loading Characteristics
Synchronous Generator Loading CharacteristicsAhmed A. Arefin
 
VOIP Design & Implementation
VOIP Design & ImplementationVOIP Design & Implementation
VOIP Design & ImplementationAhmed A. Arefin
 
Design and Development of a Solid State Relay with Smart Monitoring and Contr...
Design and Development of a Solid State Relay with Smart Monitoring and Contr...Design and Development of a Solid State Relay with Smart Monitoring and Contr...
Design and Development of a Solid State Relay with Smart Monitoring and Contr...Ahmed A. Arefin
 

More from Ahmed A. Arefin (8)

VSAT
VSATVSAT
VSAT
 
Crane Controller in PLC
Crane Controller in PLCCrane Controller in PLC
Crane Controller in PLC
 
BCD Counter
BCD CounterBCD Counter
BCD Counter
 
Line Follower Robot
Line Follower RobotLine Follower Robot
Line Follower Robot
 
Nuclear Power Plant
Nuclear Power Plant Nuclear Power Plant
Nuclear Power Plant
 
Synchronous Generator Loading Characteristics
Synchronous Generator Loading CharacteristicsSynchronous Generator Loading Characteristics
Synchronous Generator Loading Characteristics
 
VOIP Design & Implementation
VOIP Design & ImplementationVOIP Design & Implementation
VOIP Design & Implementation
 
Design and Development of a Solid State Relay with Smart Monitoring and Contr...
Design and Development of a Solid State Relay with Smart Monitoring and Contr...Design and Development of a Solid State Relay with Smart Monitoring and Contr...
Design and Development of a Solid State Relay with Smart Monitoring and Contr...
 

Recently uploaded

INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 

Recently uploaded (20)

INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 

Audio Signal Processing

  • 1. Page | 1 Project Name: Audio Signal processing Basic Concepts: Audio signal processing, sometimes referred to as audio processing, is the intentional alteration of auditory signals, or sound, often through an audio effect or effects unit. As audio signals may be electronically represented in either digital or analog format, signal processing may occur in either domain. Echo to simulate the effect of reverberation in a large hall or cavern, one or several delayed signals are added to the original signal. To be perceived as echo, the delay has to be of order 35 milliseconds or above. Short of actually playing a sound in the desired environment, the seffect of echo can be implemented using either digital or analog methods. Analog echo effects are implemented using tape delays and/or spring reverbs. When large numbers of delayed signals are mixed over several seconds, the resulting sound has the effect of being presented in a large room, and it is more commonly called reverberation or reverb for short. When a measurement is digitized, the number of bits used to represent the measurement determines the maximum possible signal-to-noise ratio. This is because the minimum possible noise level is the error caused by the quantization of the signal, sometimes called Quantization noise. This noise level is non-linear and signal-dependent; different calculations exist for different signal models. Quantization noise is modeled as an analog error signal summed with the signal before quantization ("additive noise").This theoretical maximum SNR assumes a perfect input signal. If the input signal is already noisy (as is usually the case), the signal's noise may be larger than the quantization noise. Real analog-to- digital converters also have other sources of noise that further decrease the SNR compared to the theoretical maximum from the idealized quantization noise, including the intentional addition of dither.Although noise levels in a digital system can be expressed using SNR, it is more common to use Eb/No, the energy per bit per noise power spectral density. The modulation error ratio (MER) is a measure of the SNR in a digitally modulated signal. Signal-to-noise ratio (abbreviated SNR or S/N) is a measure used in science and engineering that compares the level of a desiredsignal to the level of background noise. It is defined as the ratio of signal power to the noise power, often expressed in decibels. A ratio higher than 1:1 (greater than 0 dB) indicates more signal than noise. While SNR is commonly quoted for electrical signals, it can be applied to any form of signal (such as isotope levels in an ice core or biochemical signaling between cells).The signal-to-noise ratio, the bandwidth, and the channel capacity of a communication channel are connected by the Shannon–Hartley theorem.Signal-to-noise ratio is sometimes used informally to refer to the ratio of useful information to false or irrelevant data in a conversation or exchange. For example, in online discussion forums and other online communities, off-topic posts and spam are regarded as "noise" that interferes with the "signal" of appropriate discussion Signal-to-noise ratio is defined as the ratio of the power of a signal (meaningful information) and the power of background noise (unwanted signal):
  • 2. Page | 2 where P is average power. Both signal and noise power must be measured at the same or equivalent points in a system, and within the same system bandwidth. If the variance of the signal and noise are known, and the signal is zero-mean: Objectives: 1.Reduce the noise from the noisy file. 2. Create an echo filter to make a signal converting into echo signal. MATLAB CODES: %Part- A [x,Fs]=audioread('noisy_speech.au'); sound(x,Fs) n=1:length(x); N=length(n); X_f=fft(x); % fft() is used to convert X in discrete Fourier Transform (DFT) of Vector X x_f=fftshift(X_f);% shift zero frequency component to the center of spectrum & swaps the left and right halves of X . magH=abs(xf); W=((2*n)/N)-1; subplot(2,1,1); plot(w,magH); title('Magnitude Response') ; ph=angle(x_f); subplot(2,1,2); plot(W,ph) title ('Phase Response'); a=1; y=filter(b,a,x); sound(y) X_f=fft(y); x_f=fftshift(X_f); magH=abs(x_f); figure w=((2*n)/N)-1; subplot(2,1,1); plot(w,magH); title('Magnitude Response') ; ph=angle(x_f); subplot(2,1,2); plot(w,ph) title ('Phase Response');
  • 3. Page | 3 Using fdatool to design a lowpass filter. From fdatool we will export the vlue of ‘b’. Outputs: -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 0 200 400 600 Magnitude Response -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 -4 -2 0 2 4 Phase Response
  • 4. Page | 4 %part B %delay = 0.375s and gain, a=0.5 [x,Fs]=audioread('speech.au'); T_d=0.375; g=0.5; d=round(T_d*Fs); b=zeros(1,d+1); a=1; b(1)=1; b(d+1)=g; y=filter(b,a,x); figure, freqz(y); figure, impz(y(6800:7000)); sound(y,Fs) Outputs: -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 0 200 400 600 Magnitude Response -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 -4 -2 0 2 4 Phase Response 0 20 40 60 80 100 120 140 160 180 200 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 n (samples) Amplitude Impulse Response
  • 5. Page | 5 %delay = 0.375s and gain a=0.25 [x,Fs]=audioread('speech.au'); T_d=0.375; g=0.25; d=round(T_d*Fs); b=zeros(1,d+1); a=1; b(1)=1; b(d+1)=g; y=filter(b,a,x); figure, freqz(y); figure, impz(y(6800:7000)); sound(y,Fs) 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -10 -5 0 5 x 10 4 Normalized Frequency ( rad/sample) Phase(degrees) 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -50 0 50 100 Normalized Frequency ( rad/sample) Magnitude(dB) 0 20 40 60 80 100 120 140 160 180 200 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 n (samples) Amplitude Impulse Response
  • 6. Page | 6 %delay = 0.375s and gain a=0.75 [x,Fs]=audioread('speech.au'); T_d=0.375; g=0.75; d=round(T_d*Fs); b=zeros(1,d+1); a=1; b(1)=1; b(d+1)=g; y=filter(b,a,x); figure, freqz(y); figure, impz(y(6800:7000)); sound(y,Fs) Outputs: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -10 -5 0 5 x 10 4 Normalized Frequency ( rad/sample) Phase(degrees) 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -50 0 50 100 Normalized Frequency ( rad/sample) Magnitude(dB) 0 20 40 60 80 100 120 140 160 180 200 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5 n (samples) Amplitude Impulse Response
  • 7. Page | 7 %delay = 0.1s and 0.2s. withgain a= 0.5. [x Fs]=audioread('speech.au'); T_d1= 0.1; d1=round(T_d1*Fs); g1=0.5; T_d2= 0.2; d2=round(T_d2*Fs); b=zeros(1, d2+1); b(1)=1; b(d1+1)=g1; b(d2+1)=g1; a=[1]; y=filter(b, a, x); figure, freqz(y); figure, impz(y(6800:7000)); sound(y,Fs) Outputs: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -6 -4 -2 0 2 x 10 4 Normalized Frequency ( rad/sample) Phase(degrees) 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -50 0 50 100 Normalized Frequency ( rad/sample) Magnitude(dB) 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -10 -5 0 5 x 10 4 Normalized Frequency ( rad/sample) Phase(degrees) 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -50 0 50 100 Normalized Frequency ( rad/sample) Magnitude(dB)
  • 8. Page | 8 Applications of this project: Processing methods and application areas include storage, level compression, data compression, transmission, enhancement (e.g., equalization, filtering, noise cancellation,echo or reverb removal or addition, etc.) Audio broadcasting Traditionally the most important audio processing (in audio broadcasting) takes place just before the transmitter. Studio audio processing is limited in the modern era due to digital audio systems ( mixers, routers) being pervasive in the studio. In audio broadcasting, the audio processor must  prevent overmodulation, and minimize it when it occurs.  compensate for non-linear transmitters, more common with medium wave and shortwave broadcasting.  adjust overall loudness to desired level.  correct errors in audio levels . 0 20 40 60 80 100 120 140 160 180 200 -0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 0.25 0.3 n (samples) Amplitude Impulse Response