# system.util.playSoundClip not loading local file

**URL:** <https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-loading-local-file/44531>\
**Category:** Ignition\
**Created:** [March 16, 2021, 2:25am UTC](https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-loading-local-file/44531 "2021-03-16T02:25:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![baisea2018](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@baisea2018](https://forum.inductiveautomation.com/u/baisea2018)\
**Post date:** [March 16, 2021, 2:25am UTC](https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-loading-local-file/44531/1 "2021-03-16T02:25:50Z")

</div>

hello, I am using “system.util.playSoundClip” in Centos7, while it looks like that the file url is always inaccessible for the function.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/9/f9ff442596cb8730dd3551959a1d6f73739ccfff.png) But I’ve done “chmod +777” to the file in the url ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/7/e792055cc9206ff10136b1dd5627a50ddfa185c6.png) ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/7/a72a3f818d98065739c058c004db38fb7055d75d.png) ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/f/bf04c81adfcfd51fbda91a9dd96d3e9959131f21.png) . Would you please give some advice to address the problem? Thank you so much.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 16, 2021, 3:51pm UTC](https://forum.inductiveautomation.com/t/system-util-playsoundclip-not-loading-local-file/44531/2 "2021-03-16T15:51:56Z")

</div>

Based on the error message, you’re entering a code path where Ignition/Java don’t recognize the path you’re giving as a file that exists. Try this:

```python
from java.io import File
file = File("/home/tts/demo.wav")
print file.exists()

```

The [File object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html) has other attributes that may help figure out why Java apparently can’t read it:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/b/2bffe47d2dfa00bd26037d7e84fbe36dc71c5f5e.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/3/9313665252d99db7440b35c082d3726d18e2c943.png)
