1
0

style: 代码格式化

This commit is contained in:
david-ajax
2025-12-13 21:47:37 +08:00
parent a0b327cdbb
commit baa7ac8ee9
64 changed files with 755 additions and 573 deletions

View File

@@ -8,5 +8,5 @@ __all__ = [
providers = {
"basetts": BaseTTS,
"edgetts": EdgeTTS,
}
"edgetts": EdgeTTS,
}

View File

@@ -1,9 +1,10 @@
import pathlib
class BaseTTS:
name = "BaseTTS"
@classmethod
def convert(cls, text: str, path: pathlib.Path | str = "") -> pathlib.Path:
"""path 是可选参数, 不填则自动返回生成文件路径"""
return path # type: ignore
return path # type: ignore

View File

@@ -2,6 +2,7 @@ from .base import BaseTTS
import pathlib
import edge_tts
class EdgeTTS(BaseTTS):
name = "EdgeTTS"
@@ -12,4 +13,4 @@ class EdgeTTS(BaseTTS):
"zh-CN-YunjianNeural",
)
communicate.save_sync(str(path))
return path # type: ignore
return path # type: ignore