UPNP to Samsung TV and MS-Series Soundbar - Issue

Any advice appreciated.

Good news and bad news. I am able to send audio URLs to the Samsung TV and MS Soundbars using UPNP. Bad news: It does not even load on Hubitat and Voices.rss URLs while it works on AWS URLs. (Note at one time it worked for Voices.rss on the MS Soundbar.)

Test code is below. Behavior:
If failure, no response received in the parse method for either SetAVTransportURI nor Play commands. If successful, receive expected results.

Testing of the files was completed by copying out of LOG the exact URL going to the TV/Speaker and copying to address line of my Firefox browser.

Code:

def testQueue() {
	logDebug("Running Upnp Test")
//Below two do not work!!!!!
//	def trackUri = "http://api.voicerss.org/?key=05f0c1430dd14147aaefd6d17073e855&f=48khz_16bit_stereo&hl=en-us&src=Test%20of%20speak%20capability"
//	def trackUri = "http://192.168.0.112/tts/a20512ce56a8c0f94a791c7b65268849.mp3"
//Below do work!!!!!
//	def trackUri = "http://s3.amazonaws.com/smartapp-media/sonos/dogs.mp3"
	def trackUri = "http://s3.amazonaws.com/smartapp-media/sonos/lightsaber.mp3"
	
	def result = []
	result << sendSpeakCmd("SetAVTransportURI",
						  ["InstanceID": 0, 
						   "CurrentURI": trackUri,
						   "CurrentURIMetaData": ""])
	result << pauseExecution(3000)
	result << sendSpeakCmd("Play", ["InstanceID":0, "Speed":"1"])
	result
}

def logDebug(msg) {
//	if (debugMode == true) {
//		log.debug "${device.label}, ${driverVersion()}: ${msg}"
//	}
log.debug "${device.label}, ${driverVersion()}: ${msg}"
}

private sendSpeakCmd(String action, Map body){
	logDebug("sendSpeakCmd: upnpAction = ${action}, upnpBody = ${body}")
	def host = "${upnpDeviceIP}:${upnpDevicePort}"
	def hubCmd = new hubitat.device.HubSoapAction(
		path:	"/upnp/control/AVTransport1",
		urn:	 "urn:schemas-upnp-org:service:AVTransport:1",
		action:  action,
		body:	body,
		headers: [Host: host, CONNECTION: "close"]
	)
log.trace "$hubCmd"
	hubCmd
}

def parse(resp) {
	log.error resp
	def response = parseLanMessage(resp)
	log.error "Parse Response = ${response}"
}

Log for Success:

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:56:23.313 am [error](http://192.168.0.112/device/edit/2593)Parse Response = [mac:78BDBC5A8276, ip:c0a80081, port:23ed, headers:[HTTP/1.1 200 OK:null, EXT:, CONNECTION:close, CONTENT-TYPE:text/xml; charset="utf-8", SERVER:UPnP/1.0, Samsung AllShare Server/1.0, DATE:Wed, 03 Apr 2019 15:56:22 GMT, USER-AGENT:Samsung User-Agent DLNADOC/1.50, Content-Length:278], body:, header:HTTP/1.1 200 OK EXT: CONNECTION: close CONTENT-TYPE: text/xml; charset="utf-8" SERVER: UPnP/1.0, Samsung AllShare Server/1.0 DATE: Wed, 03 Apr 2019 15:56:22 GMT USER-AGENT: Samsung User-Agent DLNADOC/1.50 Content-Length: 278 , status:200, xml:, data:]

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:56:23.097 am [error](http://192.168.0.112/device/edit/2593)Parse Response = [mac:78BDBC5A8276, ip:c0a80081, port:23ed, headers:[HTTP/1.1 200 OK:null, EXT:, CONNECTION:close, CONTENT-TYPE:text/xml; charset="utf-8", SERVER:UPnP/1.0, Samsung AllShare Server/1.0, DATE:Wed, 03 Apr 2019 15:56:21 GMT, USER-AGENT:Samsung User-Agent DLNADOC/1.50, Content-Length:304], body:, header:HTTP/1.1 200 OK EXT: CONNECTION: close CONTENT-TYPE: text/xml; charset="utf-8" SERVER: UPnP/1.0, Samsung AllShare Server/1.0 DATE: Wed, 03 Apr 2019 15:56:21 GMT USER-AGENT: Samsung User-Agent DLNADOC/1.50 Content-Length: 304 , status:200, xml:, data:]

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:56:22.792 am [trace](http://192.168.0.112/device/edit/2593)POST /upnp/control/AVTransport1 HTTP/1.1 Accept: */* User-Agent: Linux UPnP/1.0 Hubitat Host: 192.168.0.129:9197 CONNECTION: close SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#Play" Content-Type: text/xml; charset="utf-8" Content-Length: 304 01

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:56:22.773 am [debug](http://192.168.0.112/device/edit/2593)Z TTS TEST, 1.1.01: sendSpeakCmd: upnpAction = Play, upnpBody = [InstanceID:0, Speed:1]

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:56:19.770 am [trace](http://192.168.0.112/device/edit/2593)POST /upnp/control/AVTransport1 HTTP/1.1 Accept: */* User-Agent: Linux UPnP/1.0 Hubitat Host: 192.168.0.129:9197 CONNECTION: close SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI" Content-Type: text/xml; charset="utf-8" Content-Length: 439 0http://s3.amazonaws.com/smartapp-media/sonos/lightsaber.mp3

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:56:19.748 am [debug](http://192.168.0.112/device/edit/2593)Z TTS TEST, 1.1.01: sendSpeakCmd: upnpAction = SetAVTransportURI, upnpBody = [InstanceID:0, CurrentURI:http://s3.amazonaws.com/smartapp-media/sonos/lightsaber.mp3, CurrentURIMetaData:]

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:56:19.743 am [debug](http://192.168.0.112/device/edit/2593)Z TTS TEST, 1.1.01: Running Upnp Test

Log for Failure:

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:58:01.908 am [trace](http://192.168.0.112/device/edit/2593)POST /upnp/control/AVTransport1 HTTP/1.1 Accept: */* User-Agent: Linux UPnP/1.0 Hubitat Host: 192.168.0.129:9197 CONNECTION: close SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#Play" Content-Type: text/xml; charset="utf-8" Content-Length: 304 01

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:58:01.901 am [debug](http://192.168.0.112/device/edit/2593)Z TTS TEST, 1.1.01: sendSpeakCmd: upnpAction = Play, upnpBody = [InstanceID:0, Speed:1]

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:57:58.901 am [trace](http://192.168.0.112/device/edit/2593)POST /upnp/control/AVTransport1 HTTP/1.1 Accept: */* User-Agent: Linux UPnP/1.0 Hubitat Host: 192.168.0.129:9197 CONNECTION: close SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI" Content-Type: text/xml; charset="utf-8" Content-Length: 518 0http://api.voicerss.org/?key=05f0c1430dd14147aaefd6d17073e855&amp;f=48khz_16bit_stereo&amp;hl=en-us&amp;src=Test%20of%20speak%20capability

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:57:58.884 am [debug](http://192.168.0.112/device/edit/2593)Z TTS TEST, 1.1.01: sendSpeakCmd: upnpAction = SetAVTransportURI, upnpBody = [InstanceID:0, CurrentURI:http://api.voicerss.org/?key=05f0c1430dd14147aaefd6d17073e855&amp;f=48khz_16bit_stereo&amp;hl=en-us&amp;src=Test%20of%20speak%20capability, CurrentURIMetaData:]

[dev:2593](http://192.168.0.112/logs#dev2593)2019-04-03 10:57:58.880 am [debug](http://192.168.0.112/device/edit/2593)Z TTS TEST, 1.1.01: Running Upnp Test

Update:

Changed Voices.Rss feed to MP3 Codec and it now works. The only one not working is the Amazon Poly version. It does not work on either the TV or the Soundbar????? I am looking into the codec in the poly documentaiton.