Play Sound Error

Hi, I get an error when I try to play a sound…

I have a button, the scripting code is:

path = system.file.openFile("wav")
if path != None:
    bytes = system.file.readFileAsBytes(path)
    event.source.parent.getComponent("Sound Player").soundData = bytes

And when I click on it, select a wav file I got this:

UnsupportedAudioFileException: could not get audio input stream from input stream
Ignition v7.7.6 (b2015120217)
Java: Oracle Corporation 1.8.0_73


Any suggestion or comment will be appreciate!


Checkout the answer at this link: … n-could-no