File size: 286 Bytes
1b64148
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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: ...