|
|
@ -6,6 +6,7 @@ import io.swagger.v3.oas.annotations.Parameter; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
import org.jeecg.config.shiro.IgnoreAuth; |
|
|
|
import org.jeecg.modules.applet.service.AppletApiTTService; |
|
|
|
import org.jeecg.modules.demo.appletTtsTimbre.entity.AppletTtsTimbre; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -32,7 +33,8 @@ public class AppletApiTTSController { |
|
|
|
} |
|
|
|
|
|
|
|
@Operation(summary = "文字转语音", description = "文字转语音") |
|
|
|
@PostMapping(value = "/textToVoice") |
|
|
|
@GetMapping(value = "/textToVoice") |
|
|
|
@IgnoreAuth |
|
|
|
public ResponseEntity<byte[]> textToVoice( |
|
|
|
@Parameter(description = "要转换的文本内容", required = true) String text, |
|
|
|
@Parameter(description = "语速,范围:[-2,6],默认为0-2代表0.6倍\n" + |
|
|
|