소스 검색

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)) {


불러오는 중...
취소
저장