rain
2024-08-01 168d72ecfc9060ec0f718b0b6585367bce4609f8
src/main/java/com/dji/sample/speak/controller/SpeakVoiceController.java
@@ -65,4 +65,14 @@
    public ResponseResult getVoices(@RequestParam Integer page, @RequestParam Integer page_size) {
        return ResponseResult.success(voiceServicel.getVoices(page, page_size));
    }
    @PostMapping("/startVoices")
    public ResponseResult takeVoices(
                                    @RequestParam String sn,
                                    @RequestParam int psdk_index,
                                    @RequestParam String name,
                                    @RequestParam String url) throws UnsupportedAudioFileException, IOException {
        return ResponseResult.success(voiceServicel.takeVoices(sn, psdk_index, name, url));
    }
}