Package com.bytedesk.ai.voice
Class AsrRestController
java.lang.Object
com.bytedesk.ai.voice.AsrRestController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>transcribe(String filePath, String uuid, int turn) 非实时 ASR:输入为 FreeSWITCH 本地录音文件路径(挂载共享目录或通过 NFS/S3 亦可换成 URL) 返回识别文本(当前返回 mock,后续对接真实 ASR)
-
Constructor Details
-
AsrRestController
public AsrRestController()
-
-
Method Details
-
transcribe
@PostMapping(value="/transcribe", produces="text/plain") public org.springframework.http.ResponseEntity<String> transcribe(@RequestParam("filePath") String filePath, @RequestParam(value="uuid",required=false) String uuid, @RequestParam(value="turn",required=false,defaultValue="1") int turn) 非实时 ASR:输入为 FreeSWITCH 本地录音文件路径(挂载共享目录或通过 NFS/S3 亦可换成 URL) 返回识别文本(当前返回 mock,后续对接真实 ASR)
-