WIP: parakeeet

This commit is contained in:
hueso
2026-05-18 23:10:13 -03:00
parent 2e4aeb3b6f
commit aec56abe73
10 changed files with 549 additions and 654 deletions

View File

@@ -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