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
areas
argument of theletalker.LeTalkerVocalTract
constructor. Also, they are the keys of theletalker.constants.vocaltract_areas
dict.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.StepGenerator
and other function generators withtransition_type
argument. 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
WhiteNoiseGenerator
orColoredNoiseGenerator
. Possible values are:Option
Distribution Description
"gaussian"
Gaussian (normal) distribution
"two_point"
Symmetrical two-point distribution
"uniform"
Symmetrical uniform distribution