From 3275aab3e120ff093346e43b2214997348b47c79 Mon Sep 17 00:00:00 2001 From: lrh <1585126058@qq.com> Date: Fri, 7 Jul 2023 14:42:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E5=88=86=E6=8E=A5=E5=8F=A3=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/iformall/sm/AiVideoHelper.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/suimangService/src/main/java/com/iformall/sm/AiVideoHelper.java b/suimangService/src/main/java/com/iformall/sm/AiVideoHelper.java index bba4de7..318542c 100644 --- a/suimangService/src/main/java/com/iformall/sm/AiVideoHelper.java +++ b/suimangService/src/main/java/com/iformall/sm/AiVideoHelper.java @@ -127,9 +127,9 @@ public class AiVideoHelper { // } } public static AiPhotoSpeakResult createPhotoSpeakVideo(AiPhotoSpeakParam videoParam) { - String response = doPost(url + photo_speak_suffix, JSONObject.toJSONString(videoParam)); + String response = doPost("http://111.198.0.15:22299" + photo_speak_suffix, JSONObject.toJSONString(videoParam)); log.info("生成视频end response:" + response); - log.info("生成视频的 IP:" + url + photo_speak_suffix); + log.info("生成视频的 IP:" + "http://111.198.0.15:22299" + photo_speak_suffix); AiPhotoSpeakResult result = new AiPhotoSpeakResult(); if (StringUtils.isBlank(response)) { result.setSuccess(false); @@ -310,10 +310,12 @@ public class AiVideoHelper { // // AiPhotoSpeakParam param = new AiPhotoSpeakParam(); -// param.setGen_txt("人多泰达股份冲冠怒发代发"); -// param.setImg(Base64Util.imageUrlToBase64("https://suimang.oss-accelerate.aliyuncs.com/builtin/personphoto/16564099737021232.png")); -// param.setGender("male"); -// param.setVoice_id("yue-CN-YunSongNeural"); +// param.setGen_txt("道可道,非常道。名可名,非常名。无名天地之始;有名万物之母。故常无欲,以观其妙;常有欲,以观其徼。此两者,同出而异名,同谓之玄。玄之又玄,众妙之门"); +// param.setImg(Base64Util.imageUrlToBase64("https://suimang.oss-accelerate.aliyuncs.com/builtin/personphoto/165640997370212321.png")); +// param.setGender("female"); +// param.setVoice_id("zh-CN-XiaoqiuNeural"); +// param.setCallback_url("https://phototest.metavatar.cc/C/callback/photo/speak"); +// param.setTask_id(837169827124269056L); // param.setVoice_style("default"); // param.setUrl("None"); // AiPhotoSpeakResult video = AiVideoHelper.createPhotoSpeakVideo(param);