montreal_forced_aligner/corpus/acoustic_corpus.py
def generate_features(self, overwrite: bool = False, compute_cmvn: bool = True) -> None:
        """
        Generate features for the corpus

        Parameters
        ----------
        overwrite: bool
            Flag for whether to ignore existing files, defaults to False
        compute_cmvn: bool
            Flag for whether to compute CMVN, defaults to True
        """
        if not overwrite and os.path.exists(
            os.path.join(self.corpus_output_directory, "feats.scp")
        ):
            self.features_generated = True
            return
        self.log_info(f"Generating base features ({self.feature_type})...")
        if self.feature_type == "mfcc":
            self.mfcc()
        self.combine_feats()
        if compute_cmvn:
            self.log_info("Calculating CMVN...")
            self.calc_cmvn()
        self.write_corpus_information()
        self.features_generated = True
        self.create_corpus_split()

        Generate features for the corpus

        Parameters
        ----------
        overwrite: bool
            Flag for whether to ignore existing files, defaults to False
        compute_cmvn: bool
            Flag for whether to compute CMVN, defaults to True
        
Generate features for the corpus
Parameters

bool
Flag for whether to ignore existing files, defaults to False
compute_cmvn: bool
Flag for whether to compute CMVN, defaults to True
Generate features for the corpus Parameters bool Flag for whether to ignore existing files defaults to False compute_cmvn : bool Flag for whether to compute CMVN defaults to True
def generate_features(self, overwrite: bool = False, compute_cmvn: bool = True) -> None:
        if not overwrite and os.path.exists(
            os.path.join(self.corpus_output_directory, "feats.scp")
        ):
            self.features_generated = True
            return
        self.log_info(f"Generating base features ({self.feature_type})...")
        if self.feature_type == "mfcc":
            self.mfcc()
        self.combine_feats()
        if compute_cmvn:
            self.log_info("Calculating CMVN...")
            self.calc_cmvn()
        self.write_corpus_information()
        self.features_generated = True
        self.create_corpus_split()
def generate_features ( self , overwrite : bool = False , compute_cmvn : bool = True ) -> None : if not overwrite and os . path . exists ( os . path . join ( self . corpus_output_directory , "feats.scp" ) ) : self . features_generated = True return self . log_info ( f"Generating base features ({self.feature_type})..." ) if self . feature_type == "mfcc" : self . mfcc ( ) self . combine_feats ( ) if compute_cmvn : self . log_info ( "Calculating CMVN..." ) self . calc_cmvn ( ) self . write_corpus_information ( ) self . features_generated = True self . create_corpus_split ( )
Generate features for the corpus
Parameters
Generate features for the corpus Parameters
"""
        Generate features for the corpus

        Parameters
        ----------
        overwrite: bool
            Flag for whether to ignore existing files, defaults to False
        compute_cmvn: bool
            Flag for whether to compute CMVN, defaults to True
        """
self
overwrite
bool
compute_cmvn
bool