mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-11 18:10:06 +08:00
14 lines
325 B
Python
14 lines
325 B
Python
from abc import ABC, abstractmethod
|
|
|
|
from app.models.transcriber_model import TranscriptResult
|
|
|
|
|
|
class Transcriber(ABC):
|
|
@abstractmethod
|
|
def transcript(self,file_path:str)->TranscriptResult:
|
|
'''
|
|
|
|
:param file_path:音频路径
|
|
:return: 返回一个 TranscriptResult 类
|
|
'''
|
|
pass |