Package com.bytedesk.ai.alibaba.audio
Class AudioSpeechController
java.lang.Object
com.bytedesk.ai.alibaba.audio.AudioSpeechController
- All Implemented Interfaces:
org.springframework.boot.ApplicationRunner
@RestController
@RequestMapping("/ai/speech")
@ConditionalOnProperty(prefix="spring.ai.dashscope.audio.synthesis",
name="enabled",
havingValue="true",
matchIfMissing=false)
public class AudioSpeechController
extends Object
implements org.springframework.boot.ApplicationRunner
语音转文本(语音识别)
spring ai alibaba 1.0.0.3 待发布,暂时无法使用
- Author:
- yuluo, yuluo</a>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FILE_PATH
- See Also:
-
-
Constructor Details
-
AudioSpeechController
public AudioSpeechController()
-
-
Method Details
-
tts
- Throws:
IOException
-
streamTTS
@GetMapping("/stream") public void streamTTS() -
run
public void run(org.springframework.boot.ApplicationArguments args) - Specified by:
run
in interfaceorg.springframework.boot.ApplicationRunner
-
destroy
- Throws:
IOException
-