|
@@ -69,12 +69,11 @@ public class TtsController {
|
|
|
|
|
|
@GetMapping("/startMusic/{vol}")
|
|
|
public String startMusic(@PathVariable Integer vol) {
|
|
|
-// vol = vol > 1000 ? 1000 : vol;
|
|
|
-// vol = vol < 0 ? 0 : vol;
|
|
|
-// log.info("start music with vol:{}", vol);
|
|
|
-// Integer start = musicService.start(playPath, vol);
|
|
|
-// return start.equals(0) ? "ok" : "error"; todo 注释掉音乐
|
|
|
- return "ok";
|
|
|
+ vol = vol > 1000 ? 1000 : vol;
|
|
|
+ vol = vol < 0 ? 0 : vol;
|
|
|
+ log.info("start music with vol:{}", vol);
|
|
|
+ Integer start = musicService.start(playPath, vol);
|
|
|
+ return start.equals(0) ? "ok" : "error";
|
|
|
}
|
|
|
|
|
|
@GetMapping("/stopMusic")
|