Learn R Programming

soundgen (version 1.7.0)

getFormantDispersion: Get formant dispersion

Description

Internal soundgen function.

Usage

getFormantDispersion(
  formants,
  method = c("meanDispersion", "regression")[2],
  speedSound = 35400,
  plot = FALSE,
  checkFormat = TRUE
)

Arguments

formants

formant frequencies in any format recognized by soundgen: a character string like aaui referring to default presets for speaker "M1"; a vector of formant frequencies like c(550, 1600, 3200); or a list with multiple values per formant like list(f1 = c(500, 550), f2 = 1200))

method

the method of estimating vocal tract length (see details)

speedSound

speed of sound in warm air, by default 35400 cm/s. Stevens (2000) "Acoustic phonetics", p. 138

plot

if TRUE, plots the regression line to illustrate the estimation of formant dispersion (method = "regression" only)

checkFormat

if FALSE, only a list of properly formatted formant frequencies is accepted

Details

Estimates formant dispersion based on one or more formant frequencies.

Examples

Run this code
# NOT RUN {
soundgen:::getFormantDispersion(
  list(f1 = c(570, 750), f2 = NA, f3 = c(2400, 2200, NA)))
# }

Run the code above in your browser using DataLab