mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
15 lines
250 B
Python
15 lines
250 B
Python
# coding=utf-8
|
|
from abc import abstractmethod
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class BaseSpeechToText(BaseModel):
|
|
@abstractmethod
|
|
def check_auth(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def speech_to_text(self, audio_file):
|
|
pass
|