| | |
| | | private SpeakVoiceService voiceServicel; |
| | | @Autowired |
| | | private PatchesConfigPojo patchesConfigPojo; |
| | | |
| | | @PostMapping("/startVoice") |
| | | public ResponseResult takeVoice(@RequestParam String sn, |
| | | @RequestParam int psdk_index, |
| | |
| | | } |
| | | |
| | | @PostMapping("/restartVoice") |
| | | public ResponseResult restartVoice(@RequestParam int psdkIndex, @RequestParam String sn) { |
| | | return ResponseResult.success(voiceServicel.restartVoice(sn, psdkIndex)); |
| | | public ResponseResult restartVoice(@RequestParam int psdk_index, @RequestParam String sn) { |
| | | return ResponseResult.success(voiceServicel.restartVoice(sn, psdk_index)); |
| | | } |
| | | |
| | | @PostMapping("/putVoice") |
| | | public ResponseResult putVoice (int id){ |
| | | return ResponseResult.success(voiceServicel.awayRiver(id)); |
| | | } |
| | | |
| | | @GetMapping("/selectVoice") |
| | | public ResponseResult getVoices(@RequestParam Integer page,@RequestParam Integer page_size ){ |
| | | return ResponseResult.success(voiceServicel.getVoices(page,page_size)); |
| | | } |
| | | |
| | | } |