|
|
@@ -185,16 +185,19 @@ public class AiVideoHelper { |
|
|
|
// videoParam.setVideo_files(videoFiles); |
|
|
|
// |
|
|
|
// AiVideoResult video = AiVideoHelper.createVideo(videoParam); |
|
|
|
// |
|
|
|
|
|
|
|
|
|
|
|
AiPhotoSpeakParam param = new AiPhotoSpeakParam(); |
|
|
|
param.setGen_txt("人多泰达股份冲冠怒发代发"); |
|
|
|
param.setImg(Base64Util.imageUrlToBase64("https://suimang.oss-accelerate.aliyuncs.com/builtin/digitalperson/16760216806604820_cSHoijDX_matting.png")); |
|
|
|
param.setGender("male"); |
|
|
|
param.setVoice_id("zh-CN-YunxiNeural"); |
|
|
|
param.setVoice_style("sad"); |
|
|
|
param.setUrl("None"); |
|
|
|
AiPhotoSpeakResult video = AiVideoHelper.createPhotoSpeakVideo(param); |
|
|
|
// AiPhotoSpeakParam param = new AiPhotoSpeakParam(); |
|
|
|
// param.setGen_txt("人多泰达股份冲冠怒发代发"); |
|
|
|
// param.setImg(Base64Util.imageUrlToBase64("https://suimang.oss-accelerate.aliyuncs.com/builtin/digitalperson/16760216806604820_cSHoijDX_matting.png")); |
|
|
|
// param.setGender("male"); |
|
|
|
// param.setVoice_id("zh-CN-YunxiNeural"); |
|
|
|
// param.setVoice_style("sad"); |
|
|
|
// param.setUrl("None"); |
|
|
|
// AiPhotoSpeakResult video = AiVideoHelper.createPhotoSpeakVideo(param); |
|
|
|
|
|
|
|
String s = Base64Util.imageUrlToBase64("https://suimang.oss-accelerate.aliyuncs.com/builtin/digitalperson/16760216806604820_cSHoijDX_matting.png"); |
|
|
|
AiVideoHelper.checkPhoto(s); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|