convertStringToFormants: Prepare a list of formants

View source: R/utilities_formants.R

convertStringToFormantsR Documentation

Prepare a list of formants

Description

Internal soundgen function.

Usage

convertStringToFormants(phonemeString, speaker = "M1")

Arguments

phonemeString

a string of characters from the dictionary of phoneme presets, e.g., uaaaaii (short u - longer a - medium-long i)

speaker

name of the preset dictionary to use

Details

Takes a string of phonemes entered WITHOUT ANY BREAKS. Recognized phonemes in the human preset dictionary: vowels "a" "o" "i" "e" "u" "0" (schwa); consonants "s" "x" "j".

Value

Returns a list of formant values, which can be fed directly into getSpectralEnvelope

Examples

formants = soundgen:::convertStringToFormants(phonemeString = 'a')
formants = soundgen:::convertStringToFormants(
  phonemeString = 'au', speaker = 'M1')
formants = soundgen:::convertStringToFormants(
  phonemeString = 'aeui', speaker = 'F1')
formants = soundgen:::convertStringToFormants(
  phonemeString = 'aaeuiiiii', speaker = 'Chimpanzee')

soundgen documentation built on Aug. 14, 2022, 5:05 p.m.