瀏覽代碼

TTS音色预览接口

private_deployment
lrh 1 年之前
父節點
當前提交
822fd82e9f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      suimangService/src/main/java/com/iformall/service/sm/impl/VoiceInfoServiceImpl.java

+ 1
- 1
suimangService/src/main/java/com/iformall/service/sm/impl/VoiceInfoServiceImpl.java 查看文件

@@ -53,7 +53,7 @@ public class VoiceInfoServiceImpl implements VoiceInfoService {
JSONObject jsonObject = new JSONObject();
jsonObject.put("gen_txt", genTxt);
jsonObject.put("voice_id", voiceInfo.getMouldSmId());
jsonObject.put("voice_style", voiceStyle);
jsonObject.put("voice_style", StringUtils.isBlank(voiceStyle) ? "default" : voiceStyle);
jsonObject.put("gender", voiceInfo.getSex() == 1 ? "male" : "female");
String response = AiVideoHelper.doPost("http://nas.pucao.cn:2002/tts_wav", jsonObject.toJSONString());
if (StringUtils.isNotBlank(response)) {


Loading…
取消
儲存