speech_asr
2023-04-11 df662541a887feafd1c17eda790be67c8711a20f
funasr/models/frontend/wav_frontend.py
@@ -9,7 +9,6 @@
from typeguard import check_argument_types
import funasr.models.frontend.eend_ola_feature as eend_ola_feature
from funasr.models.frontend.abs_frontend import AbsFrontend
def load_cmvn(cmvn_file):
@@ -76,7 +75,7 @@
    return LFR_outputs.type(torch.float32)
class WavFrontend(AbsFrontend):
class WavFrontend(torch.nn.Module):
    """Conventional frontend structure for ASR.
    """
@@ -207,7 +206,7 @@
        return feats_pad, feats_lens
class WavFrontendOnline(AbsFrontend):
class WavFrontendOnline(torch.nn.Module):
    """Conventional frontend structure for streaming ASR/VAD.
    """
@@ -452,7 +451,7 @@
        self.lfr_splice_cache = []
class WavFrontendMel23(AbsFrontend):
class WavFrontendMel23(torch.nn.Module):
    """Conventional frontend structure for ASR.
    """