WIP: parakeeet
This commit is contained in:
@@ -14,16 +14,26 @@
|
||||
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
import numpy as np
|
||||
|
||||
from ..helper import Results
|
||||
|
||||
|
||||
class Model(ABC):
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
def transcribe(self, result: Results, audio_file: Path) -> None:
|
||||
def is_loaded(self) -> bool:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def load(self) -> None:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def recognize(self, result: Results, audio: np.ndarray) -> None:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user