mirror of
https://github.com/arc53/DocsGPT.git
synced 2026-05-22 13:25:08 +00:00
16 lines
344 B
Python
16 lines
344 B
Python
from abc import ABC, abstractmethod
|
|
from pathlib import Path
|
|
from typing import Any, Dict, Optional
|
|
|
|
|
|
class BaseSTT(ABC):
|
|
@abstractmethod
|
|
def transcribe(
|
|
self,
|
|
file_path: Path,
|
|
language: Optional[str] = None,
|
|
timestamps: bool = False,
|
|
diarize: bool = False,
|
|
) -> Dict[str, Any]:
|
|
pass
|