diff --git a/suimangService/src/main/java/com/iformall/sm/AiVideoHelper.java b/suimangService/src/main/java/com/iformall/sm/AiVideoHelper.java index 0fe8ebb..1521447 100644 --- a/suimangService/src/main/java/com/iformall/sm/AiVideoHelper.java +++ b/suimangService/src/main/java/com/iformall/sm/AiVideoHelper.java @@ -37,6 +37,12 @@ public class AiVideoHelper { this.oral_broadcasting = oral_broadcasting; } + public static String video_tts; + @Value("${suimang.video_tts}") + public void setVideoTts(String video_tts) { + this.video_tts = video_tts; + } + public static String photo_speak; @Value("${suimang.photo_speak}") public void setPhotoSpeak(String photo_speak){ @@ -181,7 +187,7 @@ public class AiVideoHelper { public static AiPreviewResult voicePreview(AiPreviewParam param) { param.setToken(token); log.info("TTS音色预览 start request:" + JSONObject.toJSONString(param)); - String response = doPost(photo_speak + "/tts_wav", JSONObject.toJSONString(param)); + String response = doPost(video_tts + "/tts_wav", JSONObject.toJSONString(param)); log.info("TTS音色预览 end response:" + response); AiPreviewResult result = new AiPreviewResult(); @@ -210,7 +216,7 @@ public class AiVideoHelper { if (code.intValue() == 3000) { result.setCode(200); result.setSuccess(true); - result.setUrl(photo_speak + strURL); + result.setUrl(video_tts + strURL); result.setTime(Double.valueOf(time)); result.setMsg("(MetaService) error,"+msg); } else {