Explorar el Código

add avatar tool

ming hace 3 años
padre
commit
370e8c6b7e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      api/routers/toolAvatarVoiceOnly.py

+ 1 - 0
api/routers/toolAvatarVoiceOnly.py

@@ -41,6 +41,7 @@ async def genAvatar_uploadmp3(file: UploadFile = File(...)):
 
 
 def makeAvatar(name_hash,avatar):
 def makeAvatar(name_hash,avatar):
     call_anchor(name_hash,avatar)
     call_anchor(name_hash,avatar)
+    shutil.copy(dir_anchor+name_hash+".mp4",tool_dest+name_hash+'.mp4')
     notify_choozmo('avatar at www.choozmo.com:8168/tools/'+name_hash+'.mp4')
     notify_choozmo('avatar at www.choozmo.com:8168/tools/'+name_hash+'.mp4')
     os.remove(dir_sound+name_hash+".mp3")
     os.remove(dir_sound+name_hash+".mp3")