@@ -55,6 +55,16 @@ async def get_tts_files():
return {'files':lst}
+@app.get("/tts/videos")
+async def get_video_files():
+ conn = rpyc.classic.connect("139.162.121.30", 12333)
+ conn.execute('import os')
+ ros = conn.modules.os
+ lst=ros.listdir('/var/video')
+ return {'files':lst}
+
@app.get("/")
async def root():
return {"message": "Hello World"}
@@ -13,7 +13,7 @@ app = Celery('tasks', broker='redis://db.ptt.cx/0')
@app.task
def to_video(fname):
os.chdir('/home/jared/to_video')
- os.system('python3.7 save_mel.py --face nina-no-ges.mp4 --audio /var/wav/'+fname+'.wav --checkpoint_path gan.pth')
+ os.system('python3.7 save_mel.py --face nina-no-ges.mp4 --audio /var/wav/'+fname+'.wav --outfile /var/video/'+fname+'.mp4 --checkpoint_path gan.pth')
#text2mel_name="TACOTRON"
return "ok"