FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-25-2008, 07:29 AM
deltuo
Guest
 
Posts: n/a
Default How to accurately calculate the instantaneous frequency for a clip of speech

hi,every one;
How to accurately calculate the instantaneous frequency for a clip o
speech? and with high frequcy resolution??
for example:
[d,sr] = wavread('xx.wav'); % a slip of sound;

thank you
Reply With Quote
  #2 (permalink)  
Old 07-25-2008, 07:52 AM
Ron N
Guest
 
Posts: n/a
Default Re: How to accurately calculate the instantaneous frequency for aclip of speech

On Jul 24, 10:29*pm, "deltuo" <del...@yahoo.com.cn> wrote:
> hi,every one;
> * * How to accurately calculate the instantaneous frequency for a clip of
> speech? and with high frequcy resolution??
> * *for example:
> * *[d,sr] = wavread('xx.wav'); *% a slip of sound;


Can you define exactly what you mean by instantaneous frequency
in an unambiguous manner? A single point could be a part
of a sine wave of any frequency.

IMHO. YMMV.

Reply With Quote
  #3 (permalink)  
Old 07-25-2008, 10:33 AM
[email protected]
Guest
 
Posts: n/a
Default Re: How to accurately calculate the instantaneous frequency for aclip of speech

On Jul 25, 5:29 pm, "deltuo" <del...@yahoo.com.cn> wrote:
> hi,every one;
> How to accurately calculate the instantaneous frequency for a clip of
> speech? and with high frequcy resolution??
> for example:
> [d,sr] = wavread('xx.wav'); % a slip of sound;
>
> thank you


You would have to find the phase and differentiate it - as in FM
decoding. No simple matter when there is noise.

K.
Reply With Quote
  #4 (permalink)  
Old 07-25-2008, 01:07 PM
Lloydchristmas
Guest
 
Posts: n/a
Default Re: How to accurately calculate the instantaneous frequency for aclip of speech

On Jul 25, 7:29*am, "deltuo" <del...@yahoo.com.cn> wrote:
> hi,every one;
> * * How to accurately calculate the instantaneous frequency for a clip of
> speech? and with high frequcy resolution??
> * *for example:
> * *[d,sr] = wavread('xx.wav'); *% a slip of sound;
>
> thank you


Well in theory you can't, because of Heisenberg's incertainty
principle. The shorter the time window, the more uncertainty you get
on the frequency.
See:
http://en.wikipedia.org/wiki/Uncerta...Wave_mechanics

O.
Reply With Quote
  #5 (permalink)  
Old 07-25-2008, 01:38 PM
eric
Guest
 
Posts: n/a
Default Re: How to accurately calculate the instantaneous frequency for aclip of speech

On Jul 25, 1:29*am, "deltuo" <del...@yahoo.com.cn> wrote:
> hi,every one;
> * * How to accurately calculate the instantaneous frequency for a clip of
> speech? and with high frequcy resolution??
> * *for example:
> * *[d,sr] = wavread('xx.wav'); *% a slip of sound;
>
> thank you


For short time windows, speech is approximately stationary and
periodic. Try a Short-Time Fourier Transform (STFT) with a 32 ms
Hamming window -- e.g. N = 256 samples for an 8 kHz sampling rate.
Downsample to 8 kHz first if your sampling rate is higher (the
identifying characteristics of speech are below 4 kHz).

The 256-point FFT of each time frame will yield 129 frequency
components [0,128] evenly spaced on the domain [0, 4] kHz. If desired
you can zero-pad the time-domain frame to interpolate the FFT at other
frequencies. You should see the fundamental pitch at around 110 Hz
with about 30-40 peaks for a male speaker and about half that many
peaks for a female speaker with a 200 Hz pitch.

Multiplying by a Hamming window in the time domain is cyclic
convolution with its spectrum in the frequency domain. Therefore, the
spectrum of each voiced frame consists of scaled copies of the Hamming
window's spectrum at multiples of the speaker's pitch. If the Hamming
window's lobes are run together such that there is significant
spectral leakage, you should increase the length of the time window.
The Hamming window should be at least two pitch periods (e.g. N=267
for a 60 Hz pitch).

It's common to plot the STFT as a spectrogram -- a 2D gray-scale plot
of time vs. frequency interpolated from the log of the spectrum's
squared magnitude (energy). The energy values are converted to gray
scale pixels with dynamic range set between a low threshold (white)
and a high threshold (black) and with brightness varying linearly in
between (the slope determines contrast).

-Eric
Reply With Quote
  #6 (permalink)  
Old 07-25-2008, 02:35 PM
eric
Guest
 
Posts: n/a
Default Re: How to accurately calculate the instantaneous frequency for aclip of speech

On Jul 25, 4:33*am, kronec...@yahoo.co.uk wrote:
> On Jul 25, 5:29 pm, "deltuo" <del...@yahoo.com.cn> wrote:
>
> > hi,every one;
> > * * How to accurately calculate the instantaneous frequency for a clip of
> > speech? and with high frequcy resolution??
> > * *for example:
> > * *[d,sr] = wavread('xx.wav'); *% a slip of sound;

>
> > thank you

>
> You would have to find the phase and differentiate it - as in FM
> decoding. No simple matter when there is noise.
>
> K.


I interpreted the OP less literally in my first reply, but you are
technically correct. In that case, the OP may be looking for pitch
tracking techniques, where pitch is the instantaneous fundamental
frequency of voiced speech. Typically this is done using a windowed
autocorrelation. But if the harmonics are filtered out, I suppose one
could estimate the pitch as the backward difference of the phase. Is
that sensible?

-Eric
Reply With Quote
  #7 (permalink)  
Old 07-25-2008, 10:06 PM
dbell
Guest
 
Posts: n/a
Default Re: How to accurately calculate the instantaneous frequency for aclip of speech

On Jul 25, 1:29*am, "deltuo" <del...@yahoo.com.cn> wrote:
> hi,every one;
> * * How to accurately calculate the instantaneous frequency for a clip of
> speech? and with high frequcy resolution??
> * *for example:
> * *[d,sr] = wavread('xx.wav'); *% a slip of sound;
>
> thank you


Did you ever read the responses to your July 17 post?

Dirk
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Instantaneous frequency with Hilbert transforms!! deltuo DSP 5 07-18-2008 07:39 PM
Chirp - Instantaneous Frequency question zrim DSP 2 05-19-2008 05:05 PM
Instantaneous Frequency junoexpress DSP 3 01-26-2007 06:04 AM
Instantaneous Frequency Validation jnarino DSP 0 02-10-2006 01:16 PM
Instantaneous frequency recovery using hilbert transform Yan.L DSP 1 10-04-2004 02:50 AM


All times are GMT +1. The time now is 03:56 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved