letalker.typing#
typing Module
The typing module defines the custom type hints.
- class letalker.typing.SimResultsDict#
Dict of letalker simulation per-element outputs
- letalker.typing.TwoLetterVowelLiteral#
Possible values are:
'aa', 'ii', 'uu', 'ae', 'ih', 'eh', 'ah', 'aw', 'uh', 'oo', 'trach'
These codes specify vocal tract areas. These can be used for the
areasargument of theletalker.LeTalkerVocalTractconstructor. Also, they are the keys of theletalker.constants.vocaltract_areasdict.The two-letter vowel codes specify the built-in (supraglottal) vocal tract configurations to produce the specified vowel (44-segment models) while the last option,
"trach", is a 32-segment trachea (subglottal) vocal tract model.
- letalker.typing.StepTypeLiteral#
This literal specifies the transition types supported by
letalker.StepGeneratorand other function generators withtransition_typeargument. There are 9 options:Option
Transition Description
"step"Instantaneous
"linear"Linear
"raised_cos"Raised cosine
"exp_decay"Exponential decay
"exp_decay_rev"Reverse exponential decay
"logistic"Logistic function
"atan"Arctangent function
"tanh"Hyperbolic tangent
"erf"Err Function
- letalker.typing.WhiteNoiseDistributionLiteral#
This literal specifies the supported probability distributions for generating noise samples via
WhiteNoiseGeneratororColoredNoiseGenerator. Possible values are:Option
Distribution Description
"gaussian"Gaussian (normal) distribution
"two_point"Symmetrical two-point distribution
"uniform"Symmetrical uniform distribution