|
|
@@ -31,8 +31,10 @@ public class AiVideoHelper { |
|
|
|
// http://nas.pucao.cn:2001/gen_dh_video |
|
|
|
public static String uri = "http://nas.pucao.cn:2001"; |
|
|
|
|
|
|
|
public static String url = "http://nas.pucao.cn:2002/img_talking"; |
|
|
|
public static String url1 = "http://nas.pucao.cn:2002/image_qualit"; |
|
|
|
public static String url = "http://nas.pucao.cn:2002"; |
|
|
|
public static String photo_speak_suffix = "/img_talking"; |
|
|
|
public static String image_quality_suffix = "/img_talking"; |
|
|
|
|
|
|
|
public static String doPost(String url, String params) { |
|
|
|
return HttpUtil.doAiVideoPost(url,params); |
|
|
|
} |
|
|
@@ -99,7 +101,7 @@ public class AiVideoHelper { |
|
|
|
} |
|
|
|
public static AiPhotoSpeakResult createPhotoSpeakVideo(AiPhotoSpeakParam videoParam) { |
|
|
|
log.info("生成视频start request:" + videoParam.neglectImgString()); |
|
|
|
String response = doPost(url, JSONObject.toJSONString(videoParam)); |
|
|
|
String response = doPost(url + photo_speak_suffix, JSONObject.toJSONString(videoParam)); |
|
|
|
log.info("生成视频end response:" + response); |
|
|
|
AiPhotoSpeakResult result = new AiPhotoSpeakResult(); |
|
|
|
if (StringUtils.isBlank(response)) { |
|
|
@@ -133,7 +135,7 @@ public class AiVideoHelper { |
|
|
|
|
|
|
|
public static AiCheckPhotoResult checkPhoto(String str) { |
|
|
|
log.info("生成视频start request:" + str); |
|
|
|
String response = doPost(url1, JSONObject.toJSONString(str)); |
|
|
|
String response = doPost(url + image_quality_suffix, JSONObject.toJSONString(str)); |
|
|
|
log.info("生成视频end response:" + response); |
|
|
|
AiCheckPhotoResult result = new AiCheckPhotoResult(); |
|
|
|
|
|
|
|