pitch = c(rep(NA, 5), rnorm(15, 300, 15), rep(NA, 7), rnorm(10, 400, 10), rep(NA, 6))
plot(pitch, type = 'b')
soundgen:::findVoicedSegments(
pitchCands = matrix(pitch, nr = 1),
shortestSyl = 20,
shortestPause = 60,
step = 10,
minVoicedCands = 1,
pitchMethods = 'blabla',
manualV = NULL,
manualTryToV = NULL,
manualUnv = NULL
)
Run the code above in your browser using DataLab