init baseEngine
This commit is contained in:
1 parent
fa41865a4e
commit
d73b9e8785
1 file changed
+14
@@ -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
|
||||||
Reference in new issue
Block a user