    def get_hubert_features(self, wavs):
        """Get HuBERT Features

        Args:
            wavs: Tensor whose shape is (B, T)

        Returns:
            Tensor whose shape is (B, T, D)
        """
        if not hasattr(self, "model"):
            self.hubert_extractor = HubertExtractor(self.cfg)

        clusters, hubert_feats = self.hubert_extractor.extract_content_features(wavs)

        return clusters, hubert_feats
Get HuBERT Features

Args:
wavs: Tensor whose shape is (B, T)

Returns:
Tensor whose shape is (B, T, D)
processors/audio_features_extractor.py