|
@@ -69,11 +69,12 @@ 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";
|
|
|
+// 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";
|
|
|
}
|
|
|
|
|
|
@GetMapping("/stopMusic")
|