|
@@ -11,6 +11,7 @@ from typing import Optional
|
|
|
from fastapi import FastAPI
|
|
|
from pydantic import BaseModel
|
|
|
import rpyc
|
|
|
+import zhtest
|
|
|
|
|
|
|
|
|
class FName(BaseModel):
|
|
@@ -29,7 +30,6 @@ app = FastAPI()
|
|
|
@app.post("/tts/audio_to_video")
|
|
|
async def audio_to_video(item: FName):
|
|
|
print(item.fname)
|
|
|
- import zhtest
|
|
|
fname=zhtest.to_video.delay(item.fname)
|
|
|
print(fname)
|
|
|
return {"OK": "200"}
|
|
@@ -40,7 +40,7 @@ async def audio_to_video(item: FName):
|
|
|
async def run_tts(item: TTS):
|
|
|
print(item.txt)
|
|
|
print(item.num)
|
|
|
- import zhtest
|
|
|
+# import zhtest
|
|
|
fname=zhtest.to_wav.delay(item.txt)
|
|
|
print(fname)
|
|
|
return {"OK": "200"}
|