SoundFileInformation#

class montreal_forced_aligner.data.SoundFileInformation(format, sample_rate, duration, num_channels, sox_string)[source]#

Bases: object

Data class for sound file information with format, duration, number of channels, bit depth, and

sox_string for use in Kaldi feature extraction if necessary

Parameters:
  • format (str) – Format of the sound file

  • sample_rate (int) – Sample rate

  • duration (float) – Duration

  • sample_rate – Sample rate

  • sox_string (str) – String to use for loading with sox

property meta#

Dictionary representation of sound file information