zelotech / domain /transcriber.py
matheusalencar's picture
first commit
1b64148
Raw History Blame Contribute Delete
286 Bytes
from typing import Protocol
class Transcriber(Protocol):
"""Contrato de transcricao. Quem chama nao sabe se por tras esta
faster-whisper local, um endpoint gerenciado ou uma API de nuvem."""
def transcribe(self, audio_path: str, language: str = "pt") -> str: ...