Files
DocsGPT/application/stt/base.py
Alex 21996af626 stt init (#2306)
* stt init

* fix: limits

* fix: errors

* fix: error messages
2026-03-17 14:27:48 +00:00

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