PhoneInterval#
- class montreal_forced_aligner.db.PhoneInterval(**kwargs)[source]#
Bases:
BaseDatabase class for storing information about aligned phone intervals
- Parameters:
id (int) – Primary key
begin (float) – Beginning timestamp of the interval
end (float) – Ending timestamp of the interval
duration (float) – Calculated duration of the interval
phone_goodness (float) – Confidence score, log-likelihood, etc for the phone interval
phone (
Phone) – Phone of the intervalutterance (
Utterance) – Utterance of the intervalword_interval_id (int) – Foreign key to
WordIntervalword_interval (
WordInterval) – Word interval that is associated with the phone interval
- as_ctm()[source]#
Generate a CtmInterval from the database object
- Returns:
CTM interval object
- Return type:
CtmInterval
- classmethod from_ctm(interval, utterance)[source]#
Construct a PhoneInterval from a CtmInterval object
- Parameters:
interval (
CtmInterval) – CtmInterval containing data for the phone intervalutterance (
Utterance) – Utterance object that the phone interval belongs to
- Returns:
Phone interval object
- Return type: