SmartThings Community

RELEASE Generic Media Renderer (DLNA Speakers). Cheap Sonos Alternative (Update V2)

dth_speakers
dth_voice
dth_alerts

(Ule) #878

Hi, I have updated the mediarenderer events app,try to test, the mod its based in a cookie signature, I think its possible the cookie expire, but check it.


(Augusto) #879

Although more limited in options to choose from, I was able to use the media renderer player to try stations based in Shoutcast. That works for me for now.

I checked your new version of the media renderer events app but still getting the same audio message.

Here is the data that is passed to the media player from the media renderer events app when a radionomy station is selected. I can confirm that pasting the URI below on my browser also gets me to the generic audio message instead of the actual station. Perhaps the cookie expired already?

{
“station”: “Air Lounge”,
“name”: “Air Lounge”,
“artist”: “”,
“album”: “Radionomy”,
“trackNumber”: “1”,
“status”: “stopped”,
“level”: “”,
“uri”: “http://listen.radionomy.com/air-lounge?d=dHNVaWQ9ODIyM2JlMjItOTg0My00MTU3LWJjNjYtM2Q4NjhmNWI3MTM5JnVzZXJyZWY9ODIyM2JlMjItOTg0My00MTU3LWJjNjYtM2Q4NjhmNWI3MTM5JmFwcE5hbWU9d2Vic2l0ZSZhZD1yYWRpb25vd2Vi”,
“trackUri”: “http://listen.radionomy.com/air-lounge?d=dHNVaWQ9ODIyM2JlMjItOTg0My00MTU3LWJjNjYtM2Q4NjhmNWI3MTM5JnVzZXJyZWY9ODIyM2JlMjItOTg0My00MTU3LWJjNjYtM2Q4NjhmNWI3MTM5JmFwcE5hbWU9d2Vic2l0ZSZhZD1yYWRpb25vd2Vi”,
“transportUri”: “http://listen.radionomy.com/air-lounge?d=dHNVaWQ9ODIyM2JlMjItOTg0My00MTU3LWJjNjYtM2Q4NjhmNWI3MTM5JnVzZXJyZWY9ODIyM2JlMjItOTg0My00MTU3LWJjNjYtM2Q4NjhmNWI3MTM5JmFwcE5hbWU9d2Vic2l0ZSZhZD1yYWRpb25vd2Vi”,
“enqueuedUri”: “”,
“metaData”: "<DIDL-Lite xmlns=“urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/” xmlns:dc=“http://purl.org/dc/elements/1.1/” xmlns:upnp=“urn:schemas-upnp-org:metadata-1-0/upnp/” xmlns:dlna=“urn:schemas-dlna-org:metadata-1-0/”><item id=“1” parentID=“1” restricted=“1”>upnp:classobject.item.audioItem.audioBroadcast</upnp:class>upnp:albumRadionomy</upnp:album>upnp:artistAir Lounge</upnp:artist>upnp:albumArtURIhttp://i3.radionomy.com/radios/400/46facdd7-38aa-441b-9f4d-7287ff80cb19.jpg</upnp:albumArtURI>dc:titleAir Lounge</dc:title><res protocolInfo=“http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000” >http://listen.radionomy.com/air-lounge "
}


(Ule) #880

Hi, I have test the station instrumentals-forever and works fine, but the station air-lounge is not anymore in Radionomy
Please test the link to known if the signature still works, for me its ok

http://listen.radionomy.com/instrumentals-forever?d=dHNVaWQ9ODIyM2JlMjItOTg0My00MTU3LWJjNjYtM2Q4NjhmNWI3MTM5JnVzZXJyZWY9ODIyM2JlMjItOTg0My00MTU3LWJjNjYtM2Q4NjhmNWI3MTM5JmFwcE5hbWU9d2Vic2l0ZSZhZD1yYWRpb25vd2Vi


(Augusto) #881

Yes this station works. Thanks.


(Ule) #882

Great news, thanks, the signature does not expire until now, try to identify the non working station to remove them from app.


(Ule) #883

Hi, I have update the device, but I have publish in a new post, if you want to read it.


#884

any plans to support the Harman Kardon?
http://hksmartthingsintegration.readthedocs.io/en/latest/


(Ule) #885

Hi, The Harman Kardon must to works like Generic MediaRenderer, I don´t have this kind of speakers to test groups, but it must to be found with media renderer Connect.


#886

I am. What are you having problems with? Remember, you have to add the device to WebCore the same way you would a light or a switch after you create it. Once that’s done, you can use the speaker as a voice synthesis device. If you are trying to use WebCore to play a media file for an alarm or whatnot, that is something that WebCore can’t do I’m pretty sure. However you can use WebCore to trigger a virtual switch and then use a SmartApp called Speaker Notify with Sound. This doesn’t allow you to pick any old noise you want but there are several there to choose from.


#887

Hi ule.

Managed to get this to detect and inatall
VIERA E30 Series Speaker - panasonic TV
Denon Amp Living Room Speaker - AVR-X2300W

And with the last, I at least got the Talking Alarm Clock to work.

Great Work

However neither of these players are always switched on or in the room I would like to use this App.

Do you have plans for a Squeezebox integration. See my post May 7 2017.


(Jeffrey Ropp) #888

Apologies for the newbie questions. I’ve tried to find like challenges in the thread but am still stuck.

I’ve installed MediaRenderer Connect app and device handler.
I searched and found my Denon AVR-1913 and Panasonic Viera ST-50. My DirecTV receivers were also indentified by the way.

I’ve installed the talking alarm clock but failed to produce any sounds from either the Viera TV or Denon receiver. The Viera’s volume was controlled successfully but neither text to speech nor sounds was produced successfully.

Similarly, when I installed Speaker Companion, no devices are found that are capable of supporting the app.

Any help would be greatly appreciated! Thanks do much for your work to make this platform useful and interesting!


(Ule) #889

hi.

Try to use Media Renderer Event to test, you could use to a radio station included inside the player device.


(Darc Ranger) #890

@ule,
I got the Polly service to work with DLNA Play 2.2.1. I have not tried it with 2.5 yet.
I modified line 1008.
I changed it from:
textToSpeech(message)

to:
textToSpeech(message, "Brian")

I only tested the English speakers, but it works for me.
Also change this part, impacts other smart apps that speak through DLNA Player.


(Jeffrey Ropp) #891

Hi Ule,

I followed the link and installed the Media Renderer Events app. I was not able to follow the rest of your instructions as RadioTunes doesn’t support hardware players unless you upgrade to a premium plan. I’m confused on the references to radionomy and radiotunes. How are they related as they seem to be separate services???

I played around with Talking Alarm clock last and I don’t see anything useful in the logs.

Any help would be greatly appreciated! Not ready to punt and get a SONOS yet!


(Ule) #892

HI, I think you have a Old version, RadioTunes has been removed before, Now the app use Radionomy, try to use the media renderer events to send a message or a station


(HAZ) #893

Is it possible to have “Media Renderer Events” play both, a track (or sound) followed by a TTS announcement ? similar to what you hear in airlines to get your attention before the message.

Also, after I play a track on the speaker, “Media Renderer Events” gets the list of available tracks and shows the tracks as options, but when I select any track and test smartapp the track is not played. Are there Any gotchas to make it work ?

I am using the v2 hub with a Fabriq Riff Speaker ( TTS works perfect, and sounds too ) I tried to play a track also on a Pioneer SC95 with no success.

Thanks in advance and I apologize if this has been answered before, I did try to search for an answer in the different posts.


(Ule) #894

Hi

No it´s possible to send 2 sound in 1 event with mediarenderer Events. But you could create a mixed sound and published to be played, it´s not dynamic but can be played.

The source track must to be available to be played, read about DLNA Servers

I don´t know about Pioneer SC95


(HAZ) #895

Thanks ule, I will go ahead and do that ( mix the sound and voice to play both )… about the DLNA track, the audio file is available (on a DLNA Server) to anyone in my local network, other DLNA players (SC95) can play the same files fine, including the DLNA speakers I am using with smartthings. If I, directly from the smartthings speaker, play the network file, it plays fine… but not when I launch the event with Media renderer ( even though it shows in the list of available tracks )…


(Ule) #896

Hi,

It´s necessary to see the track data to verify the audio path, send me the track data.

in mediarenderer events app add this in line 436 just before the command to see what it´s sending.

log.trace “sonos.playTrack(${state.selectedSong})”


(HAZ) #897

thanks ule, hopefully these are the logs… attempted to play track at 3:40:38 PM the other errors appeared later by themselves…

3685f868-aa9e-42d4-8f14-0c207b7e1b80 3:41:03 PM: error org.xml.sax.SAXParseException; lineNumber: 26; columnNumber: 3; The element type “CurrentTrackMetaData” must be terminated by the matching end-tag “”. @ line 267
9b9841ae-2870-4fa4-b98c-2a61b25fefc8 3:41:03 PM: error org.xml.sax.SAXParseException; lineNumber: 26; columnNumber: 3; The element type “CurrentTrackMetaData” must be terminated by the matching end-tag “”. @ line 267
08a890ac-de49-4c32-94ed-d842afc9c553 3:41:03 PM: error org.xml.sax.SAXParseException; lineNumber: 26; columnNumber: 3; The element type “CurrentTrackMetaData” must be terminated by the matching end-tag “”. @ line 267
0699709d-27da-4755-9403-398330553243 3:41:03 PM: trace Skipping event generation for sound file http://s3.amazonaws.com/smartapp-media/polly-tts/joey/136609ac8ed5669625edec52540a42f6f6e9c289.mp3?ts=1506292752709
81c26122-d02c-4dd0-97e6-c42a8f2db355 3:41:00 PM: trace MEDIARENDER RESPONSES
81c26122-d02c-4dd0-97e6-c42a8f2db355 3:41:00 PM: debug getChildDevices(false), children=4
81c26122-d02c-4dd0-97e6-c42a8f2db355 3:41:00 PM: trace MEDIARENDER RESPONSES
81c26122-d02c-4dd0-97e6-c42a8f2db355 3:41:00 PM: debug getChildDevices(false), children=4
81c26122-d02c-4dd0-97e6-c42a8f2db355 3:41:00 PM: debug getChildDevices(false), children=4
998d04fb-9177-4ff3-a7b7-fe90474d863d 3:40:38 PM: error groovy.lang.MissingMethodException: No signature of method: script1506724838452647171513.$() is applicable for argument types: (script1506724838452647171513$_takeAction_closure14) values: [script1506724838452647171513$_takeAction_closure14@57819287]
Possible solutions: is(java.lang.Object), now(), url(), run(), any(), app(java.util.Map) @ line 436
3:40:31 PM: info Waiting on events…
3:40:31 PM: info For past logs for individual things go to the My Devices section, find the device and click on the Events link on the device information page.
3:40:31 PM: info This console provides live logging of your SmartThings.