|
|
@ -36,7 +36,6 @@ public class AppletApiTTServiceImpl implements AppletApiTTService { |
|
|
@Value("${tencent.secretKey}") |
|
|
@Value("${tencent.secretKey}") |
|
|
private String secretKey; |
|
|
private String secretKey; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private IAppletTtsTimbreService appletTtsTimbreService; |
|
|
private IAppletTtsTimbreService appletTtsTimbreService; |
|
|
@Autowired |
|
|
@Autowired |
|
|
@ -75,7 +74,7 @@ public class AppletApiTTServiceImpl implements AppletApiTTService { |
|
|
|
|
|
|
|
|
// 创建返回对象,将audioId放在Audio字段中返回给前端 |
|
|
// 创建返回对象,将audioId放在Audio字段中返回给前端 |
|
|
TextToVoiceResponse response = new TextToVoiceResponse(); |
|
|
TextToVoiceResponse response = new TextToVoiceResponse(); |
|
|
response.setAudio(existingCache.getAudioId()); // 返回音频文件URL |
|
|
|
|
|
|
|
|
response.setAudio(existingCache.getAudioId()); //返回音频文件URL |
|
|
return response; |
|
|
return response; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|