| @@ -210,7 +210,8 @@ suimang: | |||||
| photo_speak_hy: http://111.198.0.15:22288 | photo_speak_hy: http://111.198.0.15:22288 | ||||
| digital_avatar: http://nas.pucao.cn:2005 | digital_avatar: http://nas.pucao.cn:2005 | ||||
| digital_avatar_hy: http://nas.pucao.cn:2003 | digital_avatar_hy: http://nas.pucao.cn:2003 | ||||
| local_deploy: true | |||||
| local_deploy: false | |||||
| token: fm2023 | |||||
| sdk: | sdk: | ||||
| sm: | sm: | ||||
| base-url: https://mtest.metavatar.cc/public | base-url: https://mtest.metavatar.cc/public | ||||
| @@ -159,14 +159,15 @@ logging: | |||||
| path: ./logs/admin | path: ./logs/admin | ||||
| suimang: | suimang: | ||||
| oral_broadcasting: xxx | |||||
| video_tts: | |||||
| photo_speak: xxx | |||||
| photo_speak_hy: xxx | |||||
| digital_avatar: xxx | |||||
| digital_avatar_hy: xxx | |||||
| callbackUrl: xxx | |||||
| oral_broadcasting: http://111.198.0.15:22266 | |||||
| callbackUrl: https://mtest.metavatar.cc/C | |||||
| video_tts: http://111.198.0.15:22222 | |||||
| photo_speak: http://111.198.0.15:22299 | |||||
| photo_speak_hy: http://111.198.0.15:22288 | |||||
| digital_avatar: http://nas.pucao.cn:2005 | |||||
| digital_avatar_hy: http://nas.pucao.cn:2003 | |||||
| local_deploy: false | local_deploy: false | ||||
| token: fm2023 | |||||
| sdk: | sdk: | ||||
| sm: | sm: | ||||
| base-url: https://test.metavatar.cc/public | base-url: https://test.metavatar.cc/public | ||||
| @@ -196,7 +196,8 @@ suimang: | |||||
| photo_speak_hy: http://111.198.0.15:22288 | photo_speak_hy: http://111.198.0.15:22288 | ||||
| digital_avatar: http://nas.pucao.cn:2005 | digital_avatar: http://nas.pucao.cn:2005 | ||||
| digital_avatar_hy: http://nas.pucao.cn:2003 | digital_avatar_hy: http://nas.pucao.cn:2003 | ||||
| local_deploy: true | |||||
| local_deploy: false | |||||
| token: fm2023 | |||||
| sdk: | sdk: | ||||
| sm: | sm: | ||||
| base-url: https://mtest.metavatar.cc/public | base-url: https://mtest.metavatar.cc/public | ||||
| @@ -145,13 +145,14 @@ logging: | |||||
| suimang: | suimang: | ||||
| oral_broadcasting: http://111.198.0.15:22266 | oral_broadcasting: http://111.198.0.15:22266 | ||||
| callbackUrl: https://metavatar.cc/C | |||||
| callbackUrl: https://mtest.metavatar.cc/C | |||||
| video_tts: http://111.198.0.15:22222 | video_tts: http://111.198.0.15:22222 | ||||
| photo_speak: http://111.198.0.15:22299 | photo_speak: http://111.198.0.15:22299 | ||||
| photo_speak_hy: http://111.198.0.15:22288 | photo_speak_hy: http://111.198.0.15:22288 | ||||
| digital_avatar: http://111.198.0.15:22200 | |||||
| digital_avatar: http://nas.pucao.cn:2005 | |||||
| digital_avatar_hy: http://nas.pucao.cn:2003 | digital_avatar_hy: http://nas.pucao.cn:2003 | ||||
| local_deploy: false | local_deploy: false | ||||
| token: fm2023 | |||||
| sdk: | sdk: | ||||
| sm: | sm: | ||||
| base-url: https://neuver.metavatar.cc/public | base-url: https://neuver.metavatar.cc/public | ||||
| @@ -192,11 +192,12 @@ logging: | |||||
| path: ./logs/s | path: ./logs/s | ||||
| suimang: | suimang: | ||||
| oral_broadcasting: http://nas.pucao.cn:2001 | |||||
| oral_broadcasting: http://111.198.0.15:22266 | |||||
| callbackUrl: https://mtest.metavatar.cc/C | |||||
| video_tts: http://111.198.0.15:22222 | video_tts: http://111.198.0.15:22222 | ||||
| photo_speak: http://111.198.0.15:22299 | photo_speak: http://111.198.0.15:22299 | ||||
| photo_speak_hy: http://111.198.0.15:22288 | photo_speak_hy: http://111.198.0.15:22288 | ||||
| digital_avatar: http://nas.pucao.cn:2005 | digital_avatar: http://nas.pucao.cn:2005 | ||||
| digital_avatar_hy: http://nas.pucao.cn:2003 | digital_avatar_hy: http://nas.pucao.cn:2003 | ||||
| callbackUrl: https://mtest.metavatar.cc/C | |||||
| local_deploy: true | |||||
| local_deploy: false | |||||
| token: fm2023 | |||||
| @@ -149,10 +149,11 @@ logging: | |||||
| suimang: | suimang: | ||||
| oral_broadcasting: http://111.198.0.15:22266 | oral_broadcasting: http://111.198.0.15:22266 | ||||
| callbackUrl: https://mtest.metavatar.cc/C | |||||
| video_tts: http://111.198.0.15:22222 | video_tts: http://111.198.0.15:22222 | ||||
| photo_speak: http://111.198.0.15:22299 | photo_speak: http://111.198.0.15:22299 | ||||
| photo_speak_hy: http://111.198.0.15:22288 | photo_speak_hy: http://111.198.0.15:22288 | ||||
| digital_avatar: http://111.198.0.15:22200 | |||||
| digital_avatar: http://nas.pucao.cn:2005 | |||||
| digital_avatar_hy: http://nas.pucao.cn:2003 | digital_avatar_hy: http://nas.pucao.cn:2003 | ||||
| callbackUrl: https://metavatar.cc/C | |||||
| local_deploy: true | |||||
| local_deploy: false | |||||
| token: fm2023 | |||||
| @@ -6,5 +6,7 @@ import lombok.Data; | |||||
| public class AiCheckPhotoParam { | public class AiCheckPhotoParam { | ||||
| private String img; | private String img; | ||||
| private String token; | |||||
| } | } | ||||
| @@ -9,5 +9,5 @@ public class AiPreviewParam { | |||||
| private String voice_style; | private String voice_style; | ||||
| private String gender; | private String gender; | ||||
| private int speed; | private int speed; | ||||
| private String token; | |||||
| } | } | ||||
| @@ -60,12 +60,17 @@ public class AiVideoHelper { | |||||
| public void setLocalDeploy(boolean localDeploy) { | public void setLocalDeploy(boolean localDeploy) { | ||||
| this.localDeploy = localDeploy; | this.localDeploy = localDeploy; | ||||
| } | } | ||||
| public static String token;//跟遂芒唯一验证 | |||||
| @Value("${suimang.token}") | |||||
| public void setToken(String token) { | |||||
| this.token = token; | |||||
| } | |||||
| public static String doPost(String url, String params) { | public static String doPost(String url, String params) { | ||||
| return HttpUtil.doAiVideoPost(url,params); | return HttpUtil.doAiVideoPost(url,params); | ||||
| } | } | ||||
| public static AiVideoResult createVideo(AiVideoParam videoParam) { | public static AiVideoResult createVideo(AiVideoParam videoParam) { | ||||
| // videoParam.setTask_id(taskId); | // videoParam.setTask_id(taskId); | ||||
| @@ -75,6 +80,7 @@ public class AiVideoHelper { | |||||
| videoParam.setCallback_url(callbackUrl + "/callback/oral/broadcasting"); | videoParam.setCallback_url(callbackUrl + "/callback/oral/broadcasting"); | ||||
| } | } | ||||
| videoParam.setToken(token); | |||||
| log.info("生成视频start request:" + videoParam.neglectImgString()); | log.info("生成视频start request:" + videoParam.neglectImgString()); | ||||
| String response = doPost(oral_broadcasting+"/gen_dh_video", JSONObject.toJSONString(videoParam)); | String response = doPost(oral_broadcasting+"/gen_dh_video", JSONObject.toJSONString(videoParam)); | ||||
| log.info("生成视频end response:"+response); | log.info("生成视频end response:"+response); | ||||
| @@ -135,6 +141,7 @@ public class AiVideoHelper { | |||||
| public static AiCheckPhotoResult checkPhoto(AiCheckPhotoParam param) { | public static AiCheckPhotoResult checkPhoto(AiCheckPhotoParam param) { | ||||
| // String response = doPost("http://111.198.0.15:22299" + "/image_qualit", JSONObject.toJSONString(param)); | // String response = doPost("http://111.198.0.15:22299" + "/image_qualit", JSONObject.toJSONString(param)); | ||||
| param.setToken(token); | |||||
| String response = doPost(photo_speak + "/image_qualit", JSONObject.toJSONString(param)); | String response = doPost(photo_speak + "/image_qualit", JSONObject.toJSONString(param)); | ||||
| log.info("图片质量审核 end response:" + response); | log.info("图片质量审核 end response:" + response); | ||||
| AiCheckPhotoResult result = new AiCheckPhotoResult(); | AiCheckPhotoResult result = new AiCheckPhotoResult(); | ||||
| @@ -168,6 +175,7 @@ public class AiVideoHelper { | |||||
| } | } | ||||
| public static AiPreviewResult voicePreview(AiPreviewParam param) { | public static AiPreviewResult voicePreview(AiPreviewParam param) { | ||||
| param.setToken(token); | |||||
| log.info("TTS音色预览 start request:" + JSONObject.toJSONString(param)); | log.info("TTS音色预览 start request:" + JSONObject.toJSONString(param)); | ||||
| String response = doPost(photo_speak + "/tts_wav", JSONObject.toJSONString(param)); | String response = doPost(photo_speak + "/tts_wav", JSONObject.toJSONString(param)); | ||||
| log.info("TTS音色预览 end response:" + response); | log.info("TTS音色预览 end response:" + response); | ||||
| @@ -41,6 +41,7 @@ public class AiVideoParam { | |||||
| private String voice_style; | private String voice_style; | ||||
| private String url = "None";//预留音频url | private String url = "None";//预留音频url | ||||
| private VideoFiles video_files; | private VideoFiles video_files; | ||||
| private String token; | |||||
| private Map<String,Object> subtitle; | private Map<String,Object> subtitle; | ||||