init baseEngine

This commit is contained in:
killua4396 2024-06-18 11:54:23 +08:00
parent fa41865a4e
commit d73b9e8785
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
from abc import ABC, abstractmethod
class BaseEngine(ABC):
@abstractmethod
def __init__(self):
pass
# 语音合成
# @param text: 待合成的文本
# @param tts_info: 包含语音合成参数的字典
# @return: 合成后的音频文件(字节流)
@abstractmethod
def synthesize(self, text:str, tts_info:dict) -> bytes:
pass