Browse Source

重复10次24

TitanWong 1 year ago
parent
commit
242d81e7c7

+ 1 - 1
src/main/java/com/zhili/stationcontrol/tts/service/impl/MusicServiceImpl.java

@@ -27,7 +27,7 @@ public class MusicServiceImpl implements MusicService {
     public Integer start(String path, Integer vol) {
         synchronized (this) {
             try {
-                String cmd = "play -v " + Float.valueOf(new Integer(vol).toString()) / 100 + " " + path + " repeat 1";
+                String cmd = "play -v " + Float.valueOf(new Integer(vol).toString()) / 100 + " " + path + " repeat 10";
                 log.info("start music cmd:{}", cmd);
                 if (p != null) {
                     p.destroyForcibly();