|
@@ -11,7 +11,6 @@ from typing import Optional
|
|
|
from fastapi import FastAPI
|
|
|
from pydantic import BaseModel
|
|
|
import rpyc
|
|
|
-import zhtest
|
|
|
|
|
|
|
|
|
class TTS(BaseModel):
|
|
@@ -27,6 +26,7 @@ app = FastAPI()
|
|
|
async def run_tts(item: TTS):
|
|
|
print(item.txt)
|
|
|
print(item.num)
|
|
|
+ import zhtest
|
|
|
fname=zhtest.to_wav.delay(item.txt)
|
|
|
print(fname)
|
|
|
return {"OK": "200"}
|