jek 4 months ago
parent
commit
cc468b68fa

+ 2 - 2
src/main/java/com/zhili/stationcontrol/tts/controller/TtsController.java

@@ -25,7 +25,7 @@ public class TtsController {
     @Autowired
     MusicService musicService;
 
-    @Value("${play_path:/static/mp3/music.mp3}")
+    @Value("${play_path:/static/wav/music.mp3}")
     String playPath;
 
 //    @GetMapping("/speak/{txt}")
@@ -81,7 +81,7 @@ public class TtsController {
 
     @GetMapping("/speak/{file}")
     public String speak(@PathVariable String file) throws IOException, InterruptedException {
-        String path = "/static/mp3/"+file+".mp3";
+        String path = "/static/wav/" +file+".mp3";
         Process exec = Runtime.getRuntime().exec("play " + path);
         exec.waitFor();
         return "ok";

+ 0 - 0
src/main/resources/static/mp3/clydw.mp3 → src/main/resources/static/wav/clydw.mp3


+ 0 - 0
src/main/resources/static/mp3/hdwc.mp3 → src/main/resources/static/wav/hdwc.mp3


+ 0 - 0
src/main/resources/static/mp3/hdz.mp3 → src/main/resources/static/wav/hdz.mp3


+ 0 - 0
src/main/resources/static/mp3/jqwtg.mp3 → src/main/resources/static/wav/jqwtg.mp3


+ 0 - 0
src/main/resources/static/mp3/music.mp3 → src/main/resources/static/wav/music.mp3


+ 0 - 0
src/main/resources/static/mp3/qsmhd.mp3 → src/main/resources/static/wav/qsmhd.mp3


+ 0 - 0
src/main/resources/static/mp3/srkl.mp3 → src/main/resources/static/wav/srkl.mp3


+ 0 - 0
src/main/resources/static/mp3/wjx.mp3 → src/main/resources/static/wav/wjx.mp3


+ 0 - 0
src/main/resources/static/mp3/wkcw.mp3 → src/main/resources/static/wav/wkcw.mp3