15 lines
295 B
Python
15 lines
295 B
Python
from abc import ABC, abstractmethod
|
|
from typing import List
|
|
|
|
|
|
class ISpeechToTextService(ABC):
|
|
|
|
@abstractmethod
|
|
async def speech_to_text(self, file: str):
|
|
pass
|
|
|
|
@staticmethod
|
|
@abstractmethod
|
|
async def fix_overlap(llm, segments: List[str]):
|
|
pass
|