VowelClass
VowelClass(self, label='', vowel_measurements=lambda: []())
A class used to represent a vowel class.
Intended Usage
VowelClass subclasses collections.abc.Sequence, so it is indexable. While it can be created on its own, it is best to leave this up to either VowelClassCollection or SpeakerCollection.
vowel_measurements = [VowelMeasurement(t) for t in fasttrack_tracks]
vowel_class = VowelClass("ay", vowel_measurements)Parameters
| Name | Type | Description | Default |
|---|---|---|---|
label |
str | The vowel class label | '' |
vowel_measurements |
list[VowelMeasurement] | A list of VowelMeasurements | lambda: []() |
Attributes
| Name | Type | Description |
|---|---|---|
| label | str | label of the vowel class |
| tracks | list | A list of VowelMeasurements |
| vowel_system | VowelClassCollection | The containing vowel system |
| winners | list[OneTrack] | A list of winner OneTracks from the vowel class |
| winner_param | NDArray[Shape[Param, Formant, N], Float] |
An np.array of winner DCT parameters from the vowel class |
| winner_param_mean | NDArray[Shape[ParamFormant, 1], Float] |
Mean of winner DCT parameters |
| winner_param_cov | NDArray[Shape[ParamFormant, ParamFormant], Float] |
Covariance of winner DCT parameters |
| winner_param_icov | NDArray[Shape[ParamFormant, ParamFormant], Float] |
Inverse covariance of winner DCT parameters |
Methods
| Name | Description |
|---|---|
| to_param_df | Return DataFrame of formant DCT parameters. |
| to_point_df | Return a DataFrame of point measurements |
| to_tracks_df | Return DataFrame of formanttracks. |
to_param_df
VowelClass.to_param_df(output='log_param')
Return DataFrame of formant DCT parameters.
Returns
| Type | Description |
|---|---|
pl.DataFrame |
A DataFrame of formant DCT parameters |
to_point_df
VowelClass.to_point_df()
Return a DataFrame of point measurements
Returns
| Type | Description |
|---|---|
pl.DataFrame |
A DataFrame of vowel point measures. |
to_tracks_df
VowelClass.to_tracks_df()
Return DataFrame of formanttracks.
Returns
| Type | Description |
|---|---|
pl.DataFrame |
A DataFrame of formant tracks |