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 Details

  • Constructor Details

    • AudioSpeechController

      public AudioSpeechController()
  • Method Details

    • tts

      @GetMapping public void tts() throws IOException
      Throws:
      IOException
    • streamTTS

      @GetMapping("/stream") public void streamTTS()
    • run

      public void run(org.springframework.boot.ApplicationArguments args)
      Specified by:
      run in interface org.springframework.boot.ApplicationRunner
    • destroy

      @PreDestroy public void destroy() throws IOException
      Throws:
      IOException