File size: 373 Bytes
b9196ed
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from __future__ import annotations
from abc import ABC, abstractmethod
from typing import Dict, Optional
from .schemas import ASRConfig, ASROutput


class ASRModel(ABC):
    @abstractmethod
    def model_info(self) -> Dict:
        ...

    @abstractmethod
    def transcribe(self, utt_id: str, audio_uri: str, config: Optional[ASRConfig] = None) -> ASROutput:
        ...