|
|
@ -48,7 +48,7 @@ public class AppletApiTTSController { |
|
|
|
@Parameter(description = "返回音频格式,可取值:wav(默认),mp3,pcm") String codec) { |
|
|
|
|
|
|
|
try { |
|
|
|
byte[] audioData = appletApiTTService.textToVoice(text, speed, voiceType, volume, codec, userId); |
|
|
|
byte[] audioData = appletApiTTService.textToVoice(text, speed, voiceType, volume, codec, null); |
|
|
|
|
|
|
|
if (audioData == null || audioData.length == 0) { |
|
|
|
return ResponseEntity.noContent().build(); |
|
|
|