1 / 60

Pitch Tracking + Prosody

Pitch Tracking + Prosody. January 20, 2009. The Plan for Today. One announcement: On Thursday, we’ll meet in the Tri-Faculty Computer Lab (SS 018) Section 1 We’ll be working on intonation transcription… Automatic Pitch Tracking (Brief) suprasegmentals review

karah
Télécharger la présentation

Pitch Tracking + Prosody

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Pitch Tracking + Prosody January 20, 2009

  2. The Plan for Today • One announcement: • On Thursday, we’ll meet in the Tri-Faculty Computer Lab (SS 018) • Section 1 • We’ll be working on intonation transcription… • Automatic Pitch Tracking • (Brief) suprasegmentals review • The basics of English intonation

  3. The Thin Blue Line • Praat can give us a representation of speech that looks like: • The blue line represents the fundamental frequency (F0) of the speaker’s voice. • Also known as a pitch track • How can we automatically “track” F0 in a sample of speech?

  4. Pitch Tracking • Voicing: • Air flow through vocal folds • Rapid opening and closing due to Bernoulli Effect • Each cycle sends an acoustic shockwave through the vocal tract • …which takes the form of a complex wave. • The rate at which the vocal folds open and close becomes the fundamental frequency (F0) of a voiced sound.

  5. Voicing Bars

  6. Voicing Bars Individual glottal pulses

  7. Voicing = Complex Wave • Note: voicing is not perfectly periodic. • …always some random variation from one cycle to the next. • How can we measure the fundamental frequency of a complex wave?

  8. duration = ??? • The basic idea: figure out the period between successive cycles of the complex wave. • Fundamental frequency = 1 / period

  9. Measuring F0 • To figure out where one cycle ends and the next begins… • The basic idea is to find how well successive “chunks” of a waveform match up with each other. • One period = the length of the chunk that matches up best with the next chunk. • Automatic Pitch Tracking parameters to think about: • Window size (i.e., chunk size) • Step size • Frequency range (= period range)

  10. Window (Chunk) Size Here’s an example of a small window

  11. Window (Chunk) Size Here’s an example of a large(r) window

  12. Initial window of the waveform is compared to another window (of the same size) at a later point in the waveform

  13. Matching ??? The waveforms in the two windows are compared to see how well they match up. Correlation = measure of how well the two windows match

  14. Autocorrelation • The measure of correlation = • Sum of the point-by-point products of the two chunks. • The technical name for this is autocorrelation… • because two parts of the same wave are being matched up against each other.

  15. Autocorrelation Example • Ex: consider window x, with n samples… • What’s its correlation with window y? • (Note: window y must also have n samples) • x1 = first sample of window x • x2 = second sample of window x • … • xn = nth (final) sample of window x • y1 = first sample of window y, etc. • Correlation (R) = x1*y1 + x2+ y2 + … + xn* yn • The larger R is, the better the correlation.

  16. By the Numbers • Sample 1 2 3 4 5 6 • x .8 .3 -.2 -.5 .4 .8 • y -.3 -.1 .1 .3 .1 -.1 • product -.24 -.03 -.02 -.15 .04 -.08 • Sum of products = -.48 • These two chunks are poorly correlated with each other.

  17. By the Numbers, part 2 • Sample 1 2 3 4 5 6 • x .8 .3 -.2 -.5 .4 .8 • y .7 .4 -.1 -.4 .1 .4 • product .56 .12 .02 .2 .04 .32 • Sum of products = 1.26 • These two chunks are well correlated with each other. • (or at least better than the previous pair) • Note: matching peaks count for more than matches close to 0.

  18. Back to (Digital) Reality ??? These two windows are poorly correlated The waveforms in the two windows are compared to see how well they match up. Correlation = measure of how well the two windows match

  19. Next: the pitch tracking algorithm moves further down the waveform and grabs a new window

  20. “step” The distance the algorithm moves forward in the waveform is called the step size

  21. Matching, again ??? The next window gets compared to the original.

  22. Matching, again ??? These two windows are also poorly correlated The next window gets compared to the original.

  23. another “step” The algorithm keeps chugging and, eventually…

  24. Matching, again ??? These two windows are highly correlated The best match is found.

  25. period The fundamental period can be determined by the calculating the length of time between window 1 and window 2.

  26. Mopping up period • Frequency is 1 / period • Q: How many possible periods does the algorithm need to check? • Frequency range (default in Praat: 75 to 600 Hz)

  27. Moving on • Another comparison window is selected and the whole process starts over again.

  28. The algorithm ultimately spits out a pitch track. • This one shows you the F0 value at each step. would I like Uhm A flight to Seattle from Albuquerque Thanks to Chilin Shih for making these materials available

  29. Pitch Tracking in Praat • Play with F0 range. • Create Pitch Object. • Also go To Manipulation…Pitch. • Also check out:

  30. Summing Up • Pitch tracking uses three parameters • Window size • Ensures reliability • In Praat, the window size is always three times the longest possible period. • E.g.: 3 X 1/75 = .04 sec. • Step size • For temporal accuracy • Frequency range • Reduces computational load

  31. Deep Thought Questions • What might happen if: • The shortest period checked is longer than the fundamental period? • AND two fundamental periods fit inside a window? • Potential Problem #1: Pitch Halving • The pitch tracker thinks the fundamental period is twice as long as it is in reality. •  It estimates F0 to be half of its actual value

  32. Pitch Halving pitch is halved Check out normal file in Praat.

  33. More Deep Thoughts • What might happen if: • The shortest period checked is less than half of the fundamental period? • AND the second half of the fundamental cycle is very similar to the first? • Potential Problem #2: Pitch doubling • The pitch tracker thinks the fundamental period is half as long as it actually is. •  It estimates the F0 to be twice as high as it is in reality.

  34. Pitch Doubling pitch is doubled

  35. Microperturbations • Another problem: • Speech waveforms are partly shaped by the type of segment being produced. • Pitch tracking can become erratic at the juncture of two segments. • In particular: • voiced to voiceless segments • sonorants to obstruents • These discontinuities in F0 are known as microperturbations. • Also: transitions between modal and creaky voicing tend to be problematic.

  36. Back to Language • F0 is important because it can be used by languages to signal differences in meaning. • Note: • Acoustic = Fundamental Frequency • Perceptual = Pitch • Linguistic = Tone

  37. A Typology • F0 is generally used in three different ways in language: 1. Tone languages (Chinese, Navajo, Igbo) • Lexically determined tone on every syllable • “Syllable-based” tone languages 2. Accentual languages (Japanese, Swedish) • The location of an accent in a particular word is lexically marked. • “Word-based” tone languages 3. Stress languages (English, Russian) • It’s complicated.

  38. Mandarin Tone • Mandarin (Chinese) is a classic example of a tone language. ma1: mother ma2: hemp ma3: horse ma4: to scold

  39. How to Transcribe Tone • Tones are defined by the pattern they make through a speaker’s frequency range. • The frequency range is usually assumed to encompass five levels (1-5). • (although this can vary, depending on the language) Highest F0 5 4 3 2 Lowest F0 1

  40. Tone 1 2 3 4 • In Mandarin, tones span a frequency range of 1-5 • Each tone is denoted by its (numerical) path through the frequency range • Each syllable can also be labeled with a tone number (e.g., ma1, ma2, ma3, ma4)

  41. How to Transcribe Tone • Tone is relative • i.e., not absolute • Each speaker has a unique frequency range. For example: Male Female 200 Hz Highest F0 5 350 Hz 4 3 2 100 Hz Lowest F0 150 Hz 1

  42. General Relativity • In ordinary conversation, for European languages (Fant, 1956) : • Men have an average F0 of 120 Hz • A range of 50-250 Hz • Women have an average F0 of 220 Hz • A range of 120-480 Hz • Children have an average F0 of 330 Hz • In a normal utterance, the F0 range is usually one octave. • i.e., highest F0 = 2 * lowest F0

  43. Relativity, in Reality • The same tones may be denoted by completely different frequencies, depending on the speaker. • Tone is an abstract linguistic unit. female speaker ma, tone 1 (55) male speaker

  44. Accent Languages • In accent languages, there is only one pitch accent associated with each word. • The pitch accent is realized on only one syllable in the word. • The other syllables in the word can have no accent. • Accent is lexically determined, so there can be minimal pairs. • Japanese is a pitch accent language… • for some, but not all, words • for some, but not all, dialects

  45. Japanese • Japanese words have one High accent • it attaches to one “mora” in the word • A mora = a vowel, or a consonant following a vowel, within a syllable. • For example: • [ni] ‘two’ has one mora. • [san] ‘three’ has two morae. • The first mora, if not accented, has a Low F0. • Morae following the accent have Low F0. It’s actually slightly more complicated than this; for more info, see: http://sp.cis.iwate-u.ac.jp/sp/lesson/j/doc/accent.html

  46. Japanese Examples • asa ‘morning’ H-L • asa ‘hemp’ L-H

  47. “chopsticks” H-L-L • “bridge” L-H-L • “edge” L-H-H

  48. Stress Languages • Stress is a suprasegmental property that applies to whole syllables. • It is defined by more than just differences in F0. • Stressed syllables are higher in pitch (usually) • Stressed syllables are longer (usually) • Stressed syllables are louder (usually) • Stressed syllables reflect more phonetic effort. • More aspiration, less coarticulation in stressed syllables. • Vowels often reduce to schwa in unstressed syllables. • The combination of these factors give stressed syllables more prominence than unstressed syllables.

  49. Stress: Pitch • (N) • (V) Complicating factor: pitch tends to drift downwards at the end of utterances

  50. Intonation • Languages superimpose pitch contours on top of word-based stress or tone distinctions. • This is called intonation. • It turns out that English: • has word-based stress • and phrase-based pitch accents (intonation) • The pitch accents are pragmatically specified, rather than lexically specified. • =they change according to discourse context.

More Related