# 2.9 Spectrograms

 Page 1 / 1
Spectrograms visually represent the speach signal, and the calculation of the Spectrogram is briefly explained.

We know how to acquire analog signals for digital processing ( pre-filtering , sampling , and A/D conversion ) and to compute spectra of discrete-time signals (using the FFT algorithm ), let's put these various components together to learn how the spectrogram shown in [link] , which is used to analyze speech , is calculated. The speech was sampled at a rate of 11.025 kHzand passed through a 16-bit A/D converter.

Music compact discs (CDs) encode their signals at a sampling rate of 44.1 kHz. We'll learn the rationale for thisnumber later. The 11.025 kHz sampling rate for the speech is 1/4 of the CD sampling rate, and was the lowest availablesampling rate commensurate with speech signal bandwidths available on my computer.

Looking at [link] the signal lasted a little over 1.2 seconds. How long was thesampled signal (in terms of samples)? What was the datarate during the sampling process in bps (bits per second)?Assuming the computer storage is organized in terms of bytes (8-bit quantities), how many bytes of computer memory doesthe speech consume?

Number of samples equals $1.2\times 11025=13230$ . The datarate is $11025\times 16=176.4$ kbps. The storage required would be $26460$ bytes.

The resulting discrete-time signal, shown in the bottom of [link] , clearly changes its character with time. To display these spectral changes, thelong signal was sectioned into frames : comparatively short, contiguous groups of samples.Conceptually, a Fourier transform of each frame is calculated using the FFT. Each frame is not so long that significantsignal variations are retained within a frame, but not so short that we lose the signal's spectral character. Roughly speaking, the speech signal's spectrum is evaluated over successive time segments and stacked side by side so that the $x$ -axis corresponds to time and the $y$ -axis frequency, with color indicating the spectral amplitude.

An important detail emerges when we examine each framed signal ( [link] ).

At the frame's edges, the signal may change very abruptly, a feature not present in theoriginal signal. A transform of such a segment reveals a curious oscillation in the spectrum, an artifact directlyrelated to this sharp amplitude change. A better way to frame signals for spectrograms is to apply a window : Shape the signal values within a frame so that the signal decaysgracefully as it nears the edges. This shaping is accomplished by multiplying the framed signal by the sequence $w(n)$ . In sectioning the signal, we essentially applied a rectangular window: $w(n)=1$ , $0\le n\le N-1$ . A much more graceful window is the Hanning window ; it has the cosine shape $w(n)=\frac{1}{2}(1-\cos \left(\frac{2\pi n}{N}\right))$ . As shown in [link] , this shaping greatly reduces spurious oscillations in each frame'sspectrum. Considering the spectrum of the Hanning windowed frame, we find that the oscillations resulting from applying therectangular window obscured a formant (the one located at a little more than half the Nyquist frequency).

What might be the source of these oscillations? To gain some insight, what is thelength- $2N$ discrete Fourier transform of a length- $N$ pulse? The pulse emulates the rectangular window, and certainly has edges.Compare your answer with the length- $2N$ transform of alength- $N$ Hanning window.

The oscillations are due to the boxcar window's Fourier transform, which equals the sinc function.

If you examine the windowed signal sections in sequence to examine windowing's effect on signal amplitude, we see that wehave managed to amplitude-modulate the signal with the periodically repeated window ( [link] ). To alleviate this problem, frames are overlapped (typically by half a frame duration). This solutionrequires more Fourier transform calculations than needed by rectangular windowing, but the spectra are much better behavedand spectral changes are much better captured.

The speech signal, such as shown in the speech spectrogram , is sectioned into overlapping, equal-length frames, with a Hanning window appliedto each frame. The spectra of each of these is calculated, and displayed in spectrograms with frequency extending vertically,window time location running horizontally, and spectral magnitude color-coded. [link] illustrates these computations.

Why the specific values of 256 for $N$ and 512 for $K$ ? Another issue is how was the length-512 transform of each length-256 windowed framecomputed?

These numbers are powers-of-two, and the FFT algorithm can be exploited with these lengths. To compute a longertransform than the input signal's duration, we simply zero-pad the signal.

#### Questions & Answers

Preparation and Applications of Nanomaterial for Drug Delivery
Application of nanotechnology in medicine
what is variations in raman spectra for nanomaterials
I only see partial conversation and what's the question here!
what about nanotechnology for water purification
please someone correct me if I'm wrong but I think one can use nanoparticles, specially silver nanoparticles for water treatment.
Damian
yes that's correct
Professor
I think
Professor
what is the stm
is there industrial application of fullrenes. What is the method to prepare fullrene on large scale.?
Rafiq
industrial application...? mmm I think on the medical side as drug carrier, but you should go deeper on your research, I may be wrong
Damian
How we are making nano material?
what is a peer
What is meant by 'nano scale'?
What is STMs full form?
LITNING
scanning tunneling microscope
Sahil
how nano science is used for hydrophobicity
Santosh
Do u think that Graphene and Fullrene fiber can be used to make Air Plane body structure the lightest and strongest. Rafiq
Rafiq
what is differents between GO and RGO?
Mahi
what is simplest way to understand the applications of nano robots used to detect the cancer affected cell of human body.? How this robot is carried to required site of body cell.? what will be the carrier material and how can be detected that correct delivery of drug is done Rafiq
Rafiq
if virus is killing to make ARTIFICIAL DNA OF GRAPHENE FOR KILLED THE VIRUS .THIS IS OUR ASSUMPTION
Anam
analytical skills graphene is prepared to kill any type viruses .
Anam
Any one who tell me about Preparation and application of Nanomaterial for drug Delivery
Hafiz
what is Nano technology ?
write examples of Nano molecule?
Bob
The nanotechnology is as new science, to scale nanometric
brayan
nanotechnology is the study, desing, synthesis, manipulation and application of materials and functional systems through control of matter at nanoscale
Damian
Is there any normative that regulates the use of silver nanoparticles?
what king of growth are you checking .?
Renato
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
why we need to study biomolecules, molecular biology in nanotechnology?
?
Kyle
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
why?
what school?
Kyle
biomolecules are e building blocks of every organics and inorganic materials.
Joe
anyone know any internet site where one can find nanotechnology papers?
research.net
kanaga
sciencedirect big data base
Ernesto
Introduction about quantum dots in nanotechnology
hi
Loga
how did you get the value of 2000N.What calculations are needed to arrive at it
Privacy Information Security Software Version 1.1a
Good
Got questions? Join the online conversation and get instant answers!