← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #705784]: Can't play audio file on Windows 10

 

Question #705784 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/705784

    Status: Answered => Solved

Neil Morrissey confirmed that the question is solved:
Thank you.  Your code put me on the right direction.

This is what eventually worked for me:
wmPlayer = App("C:\\Program Files\\Windows Media Player\\wmplayer.exe")
# path to wav file - note, must be under the folder where Sikuli jar is running from
filePath = "C:\\Sikuli\\audiofiles\\Test.wav"
# pass filePath as a parameter when opening App
wmPlayer.setUsing(filePath)
wmPlayer.open()

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.