|
@@ -37,6 +37,12 @@ public class AiVideoHelper { |
|
|
this.oral_broadcasting = oral_broadcasting; |
|
|
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; |
|
|
public static String photo_speak; |
|
|
@Value("${suimang.photo_speak}") |
|
|
@Value("${suimang.photo_speak}") |
|
|
public void setPhotoSpeak(String photo_speak){ |
|
|
public void setPhotoSpeak(String photo_speak){ |
|
@@ -181,7 +187,7 @@ public class AiVideoHelper { |
|
|
public static AiPreviewResult voicePreview(AiPreviewParam param) { |
|
|
public static AiPreviewResult voicePreview(AiPreviewParam param) { |
|
|
param.setToken(token); |
|
|
param.setToken(token); |
|
|
log.info("TTS音色预览 start request:" + JSONObject.toJSONString(param)); |
|
|
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); |
|
|
log.info("TTS音色预览 end response:" + response); |
|
|
AiPreviewResult result = new AiPreviewResult(); |
|
|
AiPreviewResult result = new AiPreviewResult(); |
|
|
|
|
|
|
|
@@ -210,7 +216,7 @@ public class AiVideoHelper { |
|
|
if (code.intValue() == 3000) { |
|
|
if (code.intValue() == 3000) { |
|
|
result.setCode(200); |
|
|
result.setCode(200); |
|
|
result.setSuccess(true); |
|
|
result.setSuccess(true); |
|
|
result.setUrl(photo_speak + strURL); |
|
|
|
|
|
|
|
|
result.setUrl(video_tts + strURL); |
|
|
result.setTime(Double.valueOf(time)); |
|
|
result.setTime(Double.valueOf(time)); |
|
|
result.setMsg("(MetaService) error,"+msg); |
|
|
result.setMsg("(MetaService) error,"+msg); |
|
|
} else { |
|
|
} else { |
|
|