app.py
CHANGED
@@ -78,6 +78,7 @@ async def synthesize(req: TTSRequest):
|
|
78 |
rate = normalize_percent(req.rate)
|
79 |
volume = normalize_percent(req.volume)
|
80 |
text = preprocess_text(req.text)
|
|
|
81 |
try:
|
82 |
# 直接使用 await,不需要 asyncio.run()
|
83 |
communicate = edge_tts.Communicate(
|
|
|
78 |
rate = normalize_percent(req.rate)
|
79 |
volume = normalize_percent(req.volume)
|
80 |
text = preprocess_text(req.text)
|
81 |
+
print(text)
|
82 |
try:
|
83 |
# 直接使用 await,不需要 asyncio.run()
|
84 |
communicate = edge_tts.Communicate(
|