|
|
@@ -219,19 +219,27 @@ public class AiVideoHelper { |
|
|
|
// 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")); |
|
|
|
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); |
|
|
|
|
|
|
|
// AiCheckPhotoParam param = new AiCheckPhotoParam(); |
|
|
|
// String img = Base64Util.imageUrlToBase64("https://suimang.oss-accelerate.aliyuncs.com/builtin/personmould/16760216806604820_cSHoijDX_grace_1080.jpg"); |
|
|
|
// param.setImg(img); |
|
|
|
// AiCheckPhotoResult result = AiVideoHelper.checkPhoto(param); |
|
|
|
// System.out.println(result); |
|
|
|
// |
|
|
|
// AiPreviewParam param = new AiPreviewParam(); |
|
|
|
// param.setGen_txt("今天是个好日子"); |
|
|
|
// param.setVoice_id("zh-CN-YunyangNeural"); |
|
|
|
// param.setVoice_style("default"); |
|
|
|
// param.setGender("male"); |
|
|
|
// param.setVoice_id("zh-CN-YunxiNeural"); |
|
|
|
// param.setVoice_style("sad"); |
|
|
|
// param.setUrl("None"); |
|
|
|
// AiPhotoSpeakResult video = AiVideoHelper.createPhotoSpeakVideo(param); |
|
|
|
|
|
|
|
AiCheckPhotoParam param = new AiCheckPhotoParam(); |
|
|
|
String img = Base64Util.imageUrlToBase64("https://suimang.oss-accelerate.aliyuncs.com/builtin/personmould/16760216806604820_cSHoijDX_grace_1080.jpg"); |
|
|
|
param.setImg(img); |
|
|
|
AiVideoHelper.checkPhoto(param); |
|
|
|
// AiPreviewResult result = AiVideoHelper.voicePreview(param); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|