06.07.2017, 07:49
You need to escape the audiofile parameter and it's better to use http to access files in user folder:
Code:
require('socket.url')
audiofile = socket.url.escape('http://192.168.0.203/user/there_is_someone_at_the_door.mp3')
reply = socket.http.request('http://admin:put7856@192.168.0.203/apps/data/sonos/sonos.lp?action=say&name=Keuken&audiofile=' .. audiofile .. '&volume=30&duration=5')