How to get Samsung R1 Speaker to Play Mp3?

I have scoured this community and I am unable to find out how to get my speaker to actually play a track. I can get it to speak no problem! Play a track...no luck!

I have tried Message Central and Rule Machine. I am using the Samsung Multiroom Wifi Audio code by @djgutheinz .

Please someone help me to get my Mario Jumping sound back on my speaker! It worked so well when I was using Smartthings!

Issue is the physical speaker. The R1 does not have the standard media renderer capability and I have been unsuccessful in working around this using the limited url play feature in the speaker. If you can get me a good, public URL, I can try to modify the code; however, it will be fairly limited in scope.

That being said, a track in Windows Media player can be called via the Multi-room application. Because of the complexity of the dlna player interface, I haven't tried to replicate.

What's the difference between Smartthings and Hubitat with regards to this topic then? I believe I was using Big Talker to get it to work on Smartthings. That doesn't work for Hubitat. Can I copy a device type from Smartthings?

There are two device types in SmartThings:

  • The official integration which as limited functionality and NO play track interface. No DH.
  • Mine which pretty much mirrors here.

Can you get me a good URL for a public domain audio I can use for some code development?? My main issue is getting data on the track length - since the speakers do not say when the track finishes.

Here is an audio file I was using to test from another Hubitat Developer.

[http://hubitat.xurria.co.uk/mp3/testfile.mp3]

I am no to sure who posted it and if I figure out who, I will give credit when I do! Will this file work to test with?

Edit: It was Cobra and his Sonos Mp3 Event Player. Thanks @Cobra

Thanks. Got it. Results are not initially promising; however, I will have to check further.

Are Text-To-Speech functions working OK?

Dave

TTS works just fine! Thank you so much for your help! I would just rather have something play that is a bit more elegant than "BACK DOOR OPENED" when I open a door. :rofl:

The below work with playTrack. Try them (load straight into the command playTrack in the interface.

It should do anything that you can link to as a url. Conditions: It must play in your browser (good test). Risk: some MP3's may not play due to internal parameters (i.e., bit rate). This is a device limitation.

However, to work best, I also like a different format for the data, and that appears to be broken. I will check further.

2 Likes

Glad you got it sorted out now Dave :slight_smile:

I just tried every possible url location in the command interface with no luck!

I still have to modify the playTrackAndResume interface to take other than just url string. Need:
[url: "http.......", duration: 2]
from any rule machine to be able to restore after the alert. I used to have it this way, then Hubitat changed the capability definition.

1 Like

Should I delete the driver and try and start all over?

No. I will have an update tomorrow with instructions on how to use. Did you try any of the mp3's on your system?

Honestly, I have no mp3's of my own anymore if that's what your asking. I've tried different links from the web that do play in Chrome browser though. I am on the 03.01 version of the driver. Could that be a part of the problem I'm having? I don't know how to update it without just deleting it and reinstalling it.

This is what I see after I put in the bell mp3 and click play track.

Give me until tomorrow to update and validate functions. Above, you should have heard a bell. My favorite is barking dogs.

Seriously, thank you so much! This has been the one sticking point for me since my switch over from Smartthings. I anxiously await your direction! I will give the barking dogs a try with an alarm situation. That should get my dogs to freak out a bit lol.

Update done and available. Need evaluation.
I have completed the update for the playTrack methods. Use instructions are later.
Installation:

Using the playTrack functions command line interface examples:
Play a track using default 15 second duration:

Play a track, specifying duration:

Dave

2 Likes

I followed the directions and now both TTS and mp3 won't work.

Try a save Preferneces. If it works, great. IF not, uninstall the device and reinstall the device.

Note: my code is the same as on gitHub and I tested these functions prior to uploading, so my apology in advance for any errors I missed.