diff --git a/bundles/core/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/actions/Audio.java b/bundles/core/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/actions/Audio.java index b5059a5b0782a..a55cc38ef3c1f 100644 --- a/bundles/core/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/actions/Audio.java +++ b/bundles/core/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/actions/Audio.java @@ -50,6 +50,7 @@ public class Audio { + private static final String RUNTIME_DIR ="runtime"; private static final String SOUND_DIR = "sounds"; private static final Logger logger = LoggerFactory.getLogger(Audio.class); @@ -65,7 +66,7 @@ public class Audio { static public void playSound( @ParamDoc(name="filename", text="the filename with extension") String filename) { try { - InputStream is = new FileInputStream(SOUND_DIR + File.separator + filename); + InputStream is = new FileInputStream(RUNTIME_DIR + File.separator + SOUND_DIR + File.separator + filename); if (filename.toLowerCase().endsWith(".mp3")) { Player player = new Player(is); playInThread(player);