After re-reading this thread, it appears that you’re using a server instance so my Library question is probably irrelevant.
I too am trying to play a file from the OH2 Sounds directory without success. I have to believe that this is due to some missing functionality because I can play a local OH file from the console. When playing the local file, OH serves a local URL reference to SB.
What rule commands are used to serve up a local sound file as a URL like it does via VoiceRSS or the Console Play?
openhab> smarthome:audio play squeezebox:squeezeboxplayer:28C97261-5842-48AE-85C7-DE2E25AFC5D7:d8eb972a4379 10minschool.mp3
This command results in a URL and all works well with SBLite, and a playlist add URL is sent.
2017-02-27 13:59:11.816 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Play notification sound on player d8:eb:97:2a:43:79 at URI http://192.168.10.55:8080/audio/81040a48-f55f-4038-9643-e45a87a2222f.mp3
2017-02-27 13:59:11.818 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Cur State: vol=50, mut=NOT MUTED, pwr=ON, stp=STOPPED, ctl=PAUSED, shf=OFF, rpt=OFF, tix=0, tnm=0, tim=3
2017-02-27 13:59:11.819 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Setting up player for notification
2017-02-27 13:59:11.820 [DEBUG] [ebox.handler.SqueezeBoxServerHandler] - Sending command: d8:eb:97:2a:43:79 mixer volume 80
2017-02-27 13:59:11.921 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Done waiting 100 ms for volume to update
2017-02-27 13:59:11.923 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Playing notification
2017-02-27 13:59:11.924 [DEBUG] [ebox.handler.SqueezeBoxServerHandler] - Sending command: d8:eb:97:2a:43:79 playlist add http://192.168.10.55:8080/audio/81040a48-f55f-4038-9643-e45a87a2222f.mp3
But when using the sendCommand in a rule I get a playlist play command and not a playlist add.
mySqueezePlayer.sendCommand( “file://doorbell.mp3” )
2017-02-27 14:01:32.832 [DEBUG] [ebox.handler.SqueezeBoxServerHandler] - Sending command: d8:eb:97:2a:43:79 playlist play doorbell.mp3
In summary, I can play a local file from the console, but I cannot use a Rule command to play a local file. I can also us VoiceRSS to request a audio file which also plays correctly via an playlist add and stream.
var string sinkKitchen = "squeezebox:squeezeboxplayer:28C97261-5842-48AE-85C7-DE2E25AFC5D7:d8eb972a4379"
logInfo("logInfoSpeak","RSS Voice Speaking Test")
say("This is a test of Voice RSS", "voicerss:enUS", sinkKitchen)
2017-02-27 14:07:43.710 [INFO ] [.smarthome.model.script.logInfoSpeak] - RSS Voice Speaking Test
2017-02-27 14:07:43.716 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 192.168.10.26
2017-02-27 14:07:43.719 [DEBUG] [eezebox.internal.SqueezeBoxAudioSink] - Processing audioStream http://192.168.10.55:8080/audio/4b1d31a3-cf44-41f4-aec9-9abe708f6f7d.mp3 of format AudioFormat [codec=MP3, container=NONE, ]
2017-02-27 14:07:43.721 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Play notification sound on player d8:eb:97:2a:43:79 at URI http://192.168.10.55:8080/audio/4b1d31a3-cf44-41f4-aec9-9abe708f6f7d.mp3
2017-02-27 14:07:43.723 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Cur State: vol=50, mut=NOT MUTED, pwr=ON, stp=STOPPED, ctl=PAUSED, shf=OFF, rpt=OFF, tix=0, tnm=1, tim=0
2017-02-27 14:07:43.726 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Setting up player for notification
2017-02-27 14:07:43.728 [DEBUG] [ebox.handler.SqueezeBoxServerHandler] - Sending command: d8:eb:97:2a:43:79 mixer volume 80
2017-02-27 14:07:44.131 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Done waiting 400 ms for volume to update
2017-02-27 14:07:44.134 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Playing notification
2017-02-27 14:07:44.136 [DEBUG] [ebox.handler.SqueezeBoxServerHandler] - Sending command: d8:eb:97:2a:43:79 playlist add http://192.168.10.55:8080/audio/4b1d31a3-cf44-41f4-aec9-9abe708f6f7d.mp3
2017-02-27 14:07:44.739 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Done waiting 600 ms for playlist to update