SmartThings Community

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

I had to delete and reinstall mine this weekend and the custom option was gone.

@ule

I am using the latest version, and I’m getting “unable to play content” message on the screen of the yamaha device when I send it the voicerss.org file, but not the standard mp3 files (e.g. sound, Bell 1)

Roy

HI @ATrain, what smartapp are you using?

Hi , @ATrain, are you using media renderer events?, in logs copy the url sent to speakers, and paste in a web browser to check if the audio is correct, possible your rss key is incorrect.

Hi, I’m new to dlna and I’ve set this up. I’m using a pure jango Wi-Fi speaker. I’m not playing music, just using it for notifications and alerts.

The problem is that there is a huge delay and the first have of the message is cutoff.

For example…

“The front door is open” is heard as " is open".

Any help would be greatly appreciated.

Have you tried to use the Delay before Message option? Try increasing the seconds.

@ule

I am using speaker notify with sound, but it no longer has the option for custom TTS. Looks like maybe tomorrow there will be a new release.

Hi @ATrain, try to use

Hi, the delay before message its when an audio cuts off at the end “the door is…” this means the speaker takes more time to load the audio, the delay adds more time “The door is opened” but, when the audio cuts off at beginning, the problem must to be the speaker , some speakers load the mp3 in several ways, maybe jongo have setting to allow gapless music, just check setting. maybe @BristolBaz can help us if the audio cuts off at the begining in these speakers.

I’m using a jongo speaker and its doing this too…

Hi @bamarayne, the post was about your question, @Mclovin50, just answer you about the delay, but I think its the speaker, @BristolBaz, has shared the jongo speakers works with mediarenderer, maybe he can help us to known if the problem its with all jongo speakers, or needs some setting to fix it, you can add a prefix in your messages like “Mesage, the door its opened” when the audio cuts at the beginning " the door its opened" will be complete, if you have other speakers all the sentence will be played

Thank you for the response. I am trying the “fill in the gap text” but haven’t had much time for testing.

I wanted the other jongo users to know it’s not just their speakers.

The delay at the beginning is kind of a bummer. It makes for a huge delay for tts, which ask I use the speakers for.

I’ll treat more this evening and post my results.

HI, I have made a TTS to ask Alexa, basically its other TTS engine, but this question is answered by Alexa,

Ex: “Tell me a joke” and in your speakers “why the chiken …”

its in beta stage , but I need help to test it

thanks

@ule

I am using Generic Media Renderer to control my Sonos speakers through ST. Merely because with your app I can use my own language TTS.

But today I noticed that volume controls do not work with your device handler. (volume up/down, mute)
Is this a known issue ?

Thanks.

Hi,

This is very important for me because I use your device handler for my Sonos speakers.
And TTS works very nice (thanks)

But I need the volume to work. How can I fix this ?

@ule confirmed your device handler does not retrieve the volume level for the sonos players correctly. you get the following error

groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @ line 585

the code on line 585 is the follwing

result << setVolume(currentVolume)

the issue is that the value of currentVolume is null when parsing the response for volume the Sonos’s are returning the following ClientUPnPError401

1 Like

thanks. what can be the solution ?

didn’t quite get that far yet. I can successfully get the current volume value from a Sonos,

by using the following code

def getVolume()
{
	//mediaRendererAction("GetVolume", "RenderingControl", getDataValue("rccurl"), [InstanceID:0, Channel:"Master"])
    mediaRendererAction("GetVolume", "RenderingControl", "/MediaRenderer/RenderingControl/Control", [InstanceID: 0, Channel: "Master"])
}

but it breaks all other standard DNLA mediarenderer device, i’m trying to unpick and figure out why, but i just dont know enough about the underlying MediaRenderer commands :frowning:

Hi @Fuzzyligic, Sorry I have not an Sonos to check , but you can help me to find a fix, could you confirm the action when the error appears?

1.- When play a sound with audio level change?

2.- When change the audio in slide bar?

3.- Both?

Thanks

Hi @ule the answer is both. the slider for the volume for the sonos always reports as 0 which is because it gets a null return and changing to volume does absolutely nothing because of the same issue

i have been trying to figure out the differences between your command, the one commented out above and the one i have used also

what i am scratching my head about is this part

GetDataValue(“rccurl”)

i dont get where rccurl is defined? or is that a value name in the returned XML? not sure yet as is truncated.

p.s. i have created a pull request with some spelling corrections etc… to the events app