| @@ -31,10 +31,10 @@ public class AiVideoHelper { | |||||
| // http://nas.pucao.cn:2001/gen_dh_video | // http://nas.pucao.cn:2001/gen_dh_video | ||||
| public static String uri = "http://nas.pucao.cn:2001"; | public static String uri = "http://nas.pucao.cn:2001"; | ||||
| public static String url = "http://nas.pucao.cn:2002"; | |||||
| public static String hy_url = "http://nas.pucao.cn:2002"; | |||||
| // public static String url = "http://111.198.0.15:22299"; | |||||
| // public static String hy_url = "http://111.198.0.15:22288"; | |||||
| // public static String url = "http://nas.pucao.cn:2002"; | |||||
| // public static String hy_url = "http://nas.pucao.cn:2002"; | |||||
| public static String url = "http://111.198.0.15:22299"; | |||||
| public static String hy_url = "http://111.198.0.15:22288"; | |||||
| public static String photo_speak_suffix = "/img_talking"; | public static String photo_speak_suffix = "/img_talking"; | ||||
| public static String image_quality_suffix = "/image_qualit"; | public static String image_quality_suffix = "/image_qualit"; | ||||
| @@ -291,14 +291,14 @@ public class AiVideoHelper { | |||||
| // param.setUrl("None"); | // param.setUrl("None"); | ||||
| // AiPhotoSpeakResult video = AiVideoHelper.createPhotoSpeakVideo(param); | // AiPhotoSpeakResult video = AiVideoHelper.createPhotoSpeakVideo(param); | ||||
| AiPhotoSpeakParam param = new AiPhotoSpeakParam(); | |||||
| param.setGen_txt("None"); | |||||
| param.setImg(Base64Util.imageUrlToBase64("https://suimang.oss-accelerate.aliyuncs.com/builtin/personphoto/seed50258.png")); | |||||
| param.setGender("None"); | |||||
| param.setVoice_id("default"); | |||||
| param.setVoice_style("default"); | |||||
| param.setUrl("https://video.metavatar.cc/sv/43a5c16d-189251d6a98/43a5c16d-189251d6a98.mp3"); | |||||
| AiPhotoSpeakResult video = AiVideoHelper.createPhotoSpeakVideo(param); | |||||
| // AiPhotoSpeakParam param = new AiPhotoSpeakParam(); | |||||
| // param.setGen_txt("None"); | |||||
| // param.setImg(Base64Util.imageUrlToBase64("https://suimang.oss-accelerate.aliyuncs.com/builtin/personphoto/seed50258.png")); | |||||
| // param.setGender("None"); | |||||
| // param.setVoice_id("default"); | |||||
| // param.setVoice_style("default"); | |||||
| // param.setUrl("https://video.metavatar.cc/sv/43a5c16d-189251d6a98/43a5c16d-189251d6a98.mp3"); | |||||
| // AiPhotoSpeakResult video = AiVideoHelper.createPhotoSpeakVideo(param); | |||||
| // AiCheckPhotoParam param = new AiCheckPhotoParam(); | // AiCheckPhotoParam param = new AiCheckPhotoParam(); | ||||
| // String img = Base64Util.imageUrlToBase64("https://suimang.oss-accelerate.aliyuncs.com/builtin/personmould/16760216806604820_cSHoijDX_grace_1080.jpg"); | // String img = Base64Util.imageUrlToBase64("https://suimang.oss-accelerate.aliyuncs.com/builtin/personmould/16760216806604820_cSHoijDX_grace_1080.jpg"); | ||||
| @@ -306,13 +306,13 @@ public class AiVideoHelper { | |||||
| // AiCheckPhotoResult result = AiVideoHelper.checkPhoto(param); | // AiCheckPhotoResult result = AiVideoHelper.checkPhoto(param); | ||||
| // System.out.println(result); | // System.out.println(result); | ||||
| // | // | ||||
| // AiPreviewParam param = new AiPreviewParam(); | |||||
| // param.setGen_txt("今天是个好日子"); | |||||
| // param.setVoice_id("ar-DZ-AminaNeural"); | |||||
| // param.setVoice_style("default"); | |||||
| // param.setGender("female"); | |||||
| // AiPreviewResult result = AiVideoHelper.voicePreview(param); | |||||
| // System.out.println(result); | |||||
| AiPreviewParam param = new AiPreviewParam(); | |||||
| param.setGen_txt("今天是个好日子"); | |||||
| param.setVoice_id("ar-DZ-AminaNeural"); | |||||
| param.setVoice_style("default"); | |||||
| param.setGender("female"); | |||||
| AiPreviewResult result = AiVideoHelper.voicePreview(param); | |||||
| System.out.println(result); | |||||
| // AiVideoHqParam param = new AiVideoHqParam(); | // AiVideoHqParam param = new AiVideoHqParam(); | ||||
| // param.setSave_dir(); | // param.setSave_dir(); | ||||