| 1 |
# test_MFCC.praat |
| 2 |
# Paul Boersma, 29 May 2026, David Weenink, 2026 |
| 3 |
|
| 4 |
appendInfo: "test_MFCC.praat:" |
| 5 |
|
| 6 |
sound = Create Sound from formula: "sineWithNoise", 1, 0, 1, 44100, "1/2 * sin(2*pi*377*x) + randomGauss(0,0.1)" |
| 7 |
mfcc1 = To MFCC: 12, 0.015, 0.005, 100, 100, 0 |
| 8 |
mfcc2 = Copy: "mfcc2" |
| 9 |
selectObject: mfcc1, mfcc2 |
| 10 |
|
| 11 |
# The Cross-correlate and the Convolve commands would crash Praat before 20260603" |
| 12 |
|
| 13 |
soundcc = Cross-correlate: "peak 0.99", "zero" |
| 14 |
selectObject: mfcc1, mfcc2 |
| 15 |
soundcon = Convolve: "peak 0.99", "zero" |
| 16 |
|
| 17 |
removeObject: sound, mfcc1, mfcc2, soundcc, soundcon |
| 18 |
|
| 19 |
appendInfoLine: " OK" |