Debian Codegraph @

test/fon/voiceReport.praat

raw
1 # voiceReport.praat
2 # Paul Boersma, 20 May 2026
3
4 #
5 # A sound without voicing should give "undefined" for many measurements.
6 #
7
8 sound = Create Sound from formula: "noise", 1, 0.0, 1.0, 44100, ~ randomGauss (0, 0.1)
9 pitch = To Pitch (raw cross-correlation): 0.0, 75.0, 600.0, 15, "no", 0.03, 0.45, 0.01, 0.35, 0.14
10 plusObject: sound
11 pulses = To PointProcess (cc)
12 plusObject: sound, pitch
13 voiceReport$ = Voice report: 0.0, 0.0, 75.0, 600.0, 1.1, 1.6, 0.03, 0.45
14 writeInfoLine: voiceReport$
15 removeObject: sound, pitch, pulses
16
17 assert extractNumber (voiceReport$, "Median pitch: ") = undefined
18 assert extractNumber (voiceReport$, "Mean pitch: ") = undefined
19 assert extractNumber (voiceReport$, "Median pitch: ") = undefined
20