Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

280 B
Raw Blame
from abc import ABC, abstractmethod
import torch


class AbsFrontend(ABC, torch.nn.Module):
    @abstractmethod
    def output_size(self) -> int:
        raise NotImplementedError

    @abstractmethod
    def forward(self, input, input_lengths):
        raise NotImplementedError