| @@ -204,9 +204,10 @@ logging: | |||||
| suimang: | suimang: | ||||
| oral_broadcasting: http://nas.pucao.cn:50014 | oral_broadcasting: http://nas.pucao.cn:50014 | ||||
| video_tts: http://nas.pucao.cn:22222 | |||||
| photo_speak: http://111.198.0.15:22299 | |||||
| photo_speak_hy: http://111.198.0.15:22288 | |||||
| video_tts: http:nas.pucao.cn:50015 | |||||
| huibo_tts_wav: http:nas.pucao.cn:50015 | |||||
| photo_speak: http:nas.pucao.cn:50015 | |||||
| photo_speak_hy: http:nas.pucao.cn:50013 | |||||
| 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 | callbackUrl: https://mtest.metavatar.cc/C | ||||
| @@ -160,10 +160,12 @@ logging: | |||||
| suimang: | suimang: | ||||
| oral_broadcasting: http://111.198.0.15:22266 | oral_broadcasting: http://111.198.0.15:22266 | ||||
| video_tts: http://111.198.0.15:22299 | |||||
| huibo_tts_wav: 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://111.198.0.15:22200 | ||||
| digital_avatar_hy: http://nas.pucao.cn:2003 | |||||
| callbackUrl: https://metavatar.cc/C | |||||
| digital_avatar_hy: http://*****:2003 | |||||
| callbackUrl: https://neuver.metavatar.cc/C | |||||
| local_deploy: false | local_deploy: false | ||||
| token: fm2023 | token: fm2023 | ||||
| @@ -205,9 +205,10 @@ logging: | |||||
| suimang: | suimang: | ||||
| oral_broadcasting: http://nas.pucao.cn:50014 | oral_broadcasting: http://nas.pucao.cn:50014 | ||||
| callbackUrl: https://mtest.metavatar.cc/C | callbackUrl: https://mtest.metavatar.cc/C | ||||
| video_tts: http://nas.pucao.cn:22222 | |||||
| photo_speak: http://111.198.0.15:22299 | |||||
| photo_speak_hy: http://111.198.0.15:22288 | |||||
| video_tts: http:nas.pucao.cn:50015 | |||||
| huibo_tts_wav: http:nas.pucao.cn:50015 | |||||
| photo_speak: http:nas.pucao.cn:50015 | |||||
| photo_speak_hy: http:nas.pucao.cn:50013 | |||||
| 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: true | ||||
| @@ -160,12 +160,13 @@ 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 | |||||
| callbackUrl: https://neuver.metavatar.cc/C | |||||
| video_tts: http://111.198.0.15:22299 | |||||
| huibo_tts_wav: 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_hy: http://nas.pucao.cn:2003 | |||||
| digital_avatar: http://111.198.0.15:22200 | |||||
| digital_avatar_hy: http://*****:2003 | |||||
| local_deploy: false | local_deploy: false | ||||
| token: fm2023 | token: fm2023 | ||||
| sdk: | sdk: | ||||
| @@ -191,9 +191,10 @@ logging: | |||||
| suimang: | suimang: | ||||
| oral_broadcasting: http://nas.pucao.cn:50014 | oral_broadcasting: http://nas.pucao.cn:50014 | ||||
| callbackUrl: https://mtest.metavatar.cc/C | callbackUrl: https://mtest.metavatar.cc/C | ||||
| video_tts: http://nas.pucao.cn:22222 | |||||
| photo_speak: http://111.198.0.15:22299 | |||||
| photo_speak_hy: http://111.198.0.15:22288 | |||||
| video_tts: http:nas.pucao.cn:50015 | |||||
| huibo_tts_wav: http:nas.pucao.cn:50015 | |||||
| photo_speak: http:nas.pucao.cn:50015 | |||||
| photo_speak_hy: http:nas.pucao.cn:50013 | |||||
| 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: true | ||||
| @@ -145,12 +145,13 @@ 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 | |||||
| callbackUrl: https://neuver.metavatar.cc/C | |||||
| video_tts: http://111.198.0.15:22299 | |||||
| huibo_tts_wav: 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_hy: http://nas.pucao.cn:2003 | |||||
| digital_avatar: http://111.198.0.15:22200 | |||||
| digital_avatar_hy: http://****:2003 | |||||
| local_deploy: false | local_deploy: false | ||||
| token: fm2023 | token: fm2023 | ||||
| sdk: | sdk: | ||||
| @@ -194,9 +194,10 @@ logging: | |||||
| suimang: | suimang: | ||||
| oral_broadcasting: http://nas.pucao.cn:50014 | oral_broadcasting: http://nas.pucao.cn:50014 | ||||
| callbackUrl: https://mtest.metavatar.cc/C | callbackUrl: https://mtest.metavatar.cc/C | ||||
| video_tts: http://nas.pucao.cn:22222 | |||||
| photo_speak: http://111.198.0.15:22299 | |||||
| photo_speak_hy: http://111.198.0.15:22288 | |||||
| video_tts: http:nas.pucao.cn:50015 | |||||
| huibo_tts_wav: http:nas.pucao.cn:50015 | |||||
| photo_speak: http:nas.pucao.cn:50015 | |||||
| photo_speak_hy: http:nas.pucao.cn:50013 | |||||
| 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: true | ||||
| @@ -149,11 +149,12 @@ 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 | |||||
| callbackUrl: https://neuver.metavatar.cc/C | |||||
| video_tts: http://111.198.0.15:22299 | |||||
| huibo_tts_wav: 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_hy: http://nas.pucao.cn:2003 | |||||
| digital_avatar: http://111.198.0.15:22200 | |||||
| digital_avatar_hy: http://*****:2003 | |||||
| local_deploy: false | local_deploy: false | ||||
| token: fm2023 | token: fm2023 | ||||
| @@ -37,7 +37,7 @@ public class AiDigitalAvatarHelper { | |||||
| this.callbackUrl = callbackUrl; | this.callbackUrl = callbackUrl; | ||||
| } | } | ||||
| //智象小程序人脸检测 | |||||
| public static AiCheckPhotoResult checkPhoto(AiCheckPhotoParam param) { | public static AiCheckPhotoResult checkPhoto(AiCheckPhotoParam param) { | ||||
| // String response = HttpUtil.doAiVideoPost("http://nas.pucao.cn:2005/dec_face", JSONObject.toJSONString(param)); | // String response = HttpUtil.doAiVideoPost("http://nas.pucao.cn:2005/dec_face", JSONObject.toJSONString(param)); | ||||
| String response = HttpUtil.doAiVideoPost(digital_avatar + "/dec_face", JSONObject.toJSONString(param)); | String response = HttpUtil.doAiVideoPost(digital_avatar + "/dec_face", JSONObject.toJSONString(param)); | ||||
| @@ -70,6 +70,7 @@ public class AiDigitalAvatarHelper { | |||||
| return result; | return result; | ||||
| } | } | ||||
| //智象小程序生成 | |||||
| public static DigitalAvatarResult digitalAvatarPhoto(DigitalAvatarParam param,Long taskId) { | public static DigitalAvatarResult digitalAvatarPhoto(DigitalAvatarParam param,Long taskId) { | ||||
| param.setTask_id(taskId); | param.setTask_id(taskId); | ||||
| @@ -154,6 +155,7 @@ public class AiDigitalAvatarHelper { | |||||
| } | } | ||||
| //智象小程序生成logo | |||||
| public static ShareImgResult createShareImg(ShareImgParam param) { | public static ShareImgResult createShareImg(ShareImgParam param) { | ||||
| // log.info("生成照片start request:" + param.getBg_img()); | // log.info("生成照片start request:" + param.getBg_img()); | ||||
| @@ -13,10 +13,10 @@ import org.springframework.stereotype.Component; | |||||
| @Component | @Component | ||||
| public class AiTtsHelper { | public class AiTtsHelper { | ||||
| public static String video_tts; | |||||
| @Value("${suimang.video_tts}") | |||||
| public void setVideoTts(String video_tts){ | |||||
| this.video_tts = video_tts; | |||||
| public static String huibo_tts_wav; | |||||
| @Value("${suimang.huibo_tts_wav}") | |||||
| public void setHuiboTtsWav(String huibo_tts_wav) { | |||||
| this.huibo_tts_wav = huibo_tts_wav; | |||||
| } | } | ||||
| @@ -24,9 +24,9 @@ public class AiTtsHelper { | |||||
| return HttpUtil.doAiVideoPost(url,params); | return HttpUtil.doAiVideoPost(url,params); | ||||
| } | } | ||||
| //慧播预览 | |||||
| public static AiPreviewResult voicePreview(AiPreviewParam param) { | public static AiPreviewResult voicePreview(AiPreviewParam param) { | ||||
| String response = doPost(video_tts + "/tts_wav", JSONObject.toJSONString(param)); | |||||
| String response = doPost(huibo_tts_wav + "/tts_wav", JSONObject.toJSONString(param)); | |||||
| log.info("TTS音色预览 end response:" + response); | log.info("TTS音色预览 end response:" + response); | ||||
| AiPreviewResult result = new AiPreviewResult(); | AiPreviewResult result = new AiPreviewResult(); | ||||
| @@ -52,7 +52,7 @@ public class AiTtsHelper { | |||||
| result.setCode(200); | result.setCode(200); | ||||
| result.setSuccess(true); | result.setSuccess(true); | ||||
| result.setUrl(video_tts + strURL); | |||||
| result.setUrl(huibo_tts_wav + strURL); | |||||
| result.setTime(Double.valueOf(time)); | result.setTime(Double.valueOf(time)); | ||||
| result.setMsg("(MetaService) error."+msg); | result.setMsg("(MetaService) error."+msg); | ||||
| } else { | } else { | ||||
| @@ -42,8 +42,9 @@ public class AiVideoHelper { | |||||
| public void setPhotoSpeak(String photo_speak){ | public void setPhotoSpeak(String photo_speak){ | ||||
| this.photo_speak = photo_speak; | this.photo_speak = photo_speak; | ||||
| } | } | ||||
| public static String photo_speak_hy; | public static String photo_speak_hy; | ||||
| @Value("${suimang.photo_speak_hy}") | @Value("${suimang.photo_speak_hy}") | ||||
| public void setPhotoSpeakHy(String photo_speak_hy){ | public void setPhotoSpeakHy(String photo_speak_hy){ | ||||
| this.photo_speak_hy = photo_speak_hy; | this.photo_speak_hy = photo_speak_hy; | ||||
| @@ -71,6 +72,7 @@ public class AiVideoHelper { | |||||
| 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); | ||||
| @@ -139,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); | param.setToken(token); | ||||
| @@ -174,6 +177,7 @@ public class AiVideoHelper { | |||||
| return result; | return result; | ||||
| } | } | ||||
| //慧语(照片说话)+慧影 预览 | |||||
| public static AiPreviewResult voicePreview(AiPreviewParam param) { | public static AiPreviewResult voicePreview(AiPreviewParam param) { | ||||
| param.setToken(token); | param.setToken(token); | ||||
| log.info("TTS音色预览 start request:" + JSONObject.toJSONString(param)); | log.info("TTS音色预览 start request:" + JSONObject.toJSONString(param)); | ||||
| @@ -216,7 +220,8 @@ public class AiVideoHelper { | |||||
| } | } | ||||
| return result; | return result; | ||||
| } | } | ||||
| //慧语(照片说话)生成 | |||||
| public static AiPhotoSpeakResult createPhotoSpeakVideo(AiPhotoSpeakParam videoParam,Long taskId) { | public static AiPhotoSpeakResult createPhotoSpeakVideo(AiPhotoSpeakParam videoParam,Long taskId) { | ||||
| videoParam.setTask_id(taskId); | videoParam.setTask_id(taskId); | ||||
| @@ -261,6 +266,7 @@ public class AiVideoHelper { | |||||
| return result; | return result; | ||||
| } | } | ||||
| //慧语(照片说话)超分生成 | |||||
| public static AiVideoHqResult videoHq(AiVideoHqParam param,Long taskId) { | public static AiVideoHqResult videoHq(AiVideoHqParam param,Long taskId) { | ||||
| param.setTask_id(taskId); | param.setTask_id(taskId); | ||||