Sound_to_Formant.praat 443 B

1234567891011121314
  1. # test/fon/Sound_to_Formant.praat
  2. # Paul Boersma, 22 November 2011
  3. # 2017
  4. for i to 30
  5. duration = randomUniform (0.001, 0.003)
  6. windowDuration = randomUniform (0.002, 0.005)
  7. samplingFrequency = randomUniform (16000, 96000)
  8. sound = Create Sound from formula: "test", 1, 0, duration, samplingFrequency, ~ 1/2 * sin(2*pi*377*x) + randomGauss(0,0.1)
  9. noprogress To Formant (burg): 0.005, 5, 5500, windowDuration, 50
  10. plus sound
  11. Remove
  12. endfor