| @@ -127,9 +127,9 @@ public class AiVideoHelper { | |||||
| // } | // } | ||||
| } | } | ||||
| public static AiPhotoSpeakResult createPhotoSpeakVideo(AiPhotoSpeakParam videoParam) { | 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("生成视频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(); | AiPhotoSpeakResult result = new AiPhotoSpeakResult(); | ||||
| if (StringUtils.isBlank(response)) { | if (StringUtils.isBlank(response)) { | ||||
| result.setSuccess(false); | result.setSuccess(false); | ||||
| @@ -310,10 +310,12 @@ public class AiVideoHelper { | |||||
| // | // | ||||
| // AiPhotoSpeakParam param = new AiPhotoSpeakParam(); | // 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.setVoice_style("default"); | ||||
| // param.setUrl("None"); | // param.setUrl("None"); | ||||
| // AiPhotoSpeakResult video = AiVideoHelper.createPhotoSpeakVideo(param); | // AiPhotoSpeakResult video = AiVideoHelper.createPhotoSpeakVideo(param); | ||||