View source: R/formants_utilities.R
convertStringToFormants | R Documentation |
Internal soundgen function.
convertStringToFormants(phonemeString, speaker = "M1")
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 |
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".
Returns a list of formant values, which can be fed directly into
getSpectralEnvelope
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.