INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: House Band -- JRiver Amazon Echo Integration  (Read 44758 times)

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
House Band -- JRiver Amazon Echo Integration
« on: October 24, 2015, 03:30:44 pm »

I've written a program to integrate JRiver Media Center with Amazon Echo. For anyone who would like to try it out, instructions are here:

http://alexatesting.elasticbeanstalk.com/house_band_beta

Obviously, you need an Amazon Echo. And you need JRiver running a music server with access outside your locale network.

Any feedback appreciated!
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

milehigh

  • Regular Member
  • World Citizen
  • ***
  • Posts: 109
  • nothing more to say...
Re: JRiver Amazon Echo Integration - help me test?
« Reply #1 on: October 28, 2015, 01:34:01 pm »

Hi,

I was going to do this but I keep getting timed out on the last page - I am not sure if you are missing a few instructions on your page?  It seems like there are a few other blocks on this page marked as mandatory:
Does this Alexa skill collect users’ personal information? *
Export Compliance

Here are your instructions

Skip down to 'Account Linking or Creation' and click on 'Yes'

For 'Authorization URL': https://alexatesting.elasticbeanstalk.com/house_band_link

For 'Client ID': 1hiL0dwSD9yIF7CK2N2SWSxiL6zYj_AazXaEw_Q6Gck

For 'Privacy Policy': https://sarkonovich-2.elasticbeanstalk.com/privacy

Click Save. You're done!
Logged

eezetee

  • World Citizen
  • ***
  • Posts: 208
Re: JRiver Amazon Echo Integration - help me test?
« Reply #2 on: October 28, 2015, 11:18:45 pm »

Can you advise what this is within the Intent Schema

{
      "intent": "SendCredentials",
      "slots": []
    },
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #3 on: October 29, 2015, 03:20:02 pm »

Yes.

Generally, in an Echo app, an intent schema maps user utterances to some app behavior.
Specifically, The SendCrendials intent (which is invoked telling Alexa to "update media server") will send a card to the Alexa App with a link you can click on to set your servers credentials:  6-letter code, andusername and password if you have one set up on your music server.

That information is then stored, encrypted, on an AWS server, and queried every time you run the app so that Alexa knows how to contact, and get authorized by, your music server.
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #4 on: October 29, 2015, 03:26:17 pm »

You shouldn't need to fill in all of the 'asterisked' fields. Those are necessary only if you are going to submit the app for certification - which you don't want to do!

If there's a required field missing, you should get a little red message at the bottom, informing you of what's missing.
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72436
  • Where did I put my teeth?
Re: JRiver Amazon Echo Integration - help me test?
« Reply #5 on: October 29, 2015, 04:37:26 pm »

Thank you very much for your work on this.
Logged

eezetee

  • World Citizen
  • ***
  • Posts: 208
Re: JRiver Amazon Echo Integration - help me test?
« Reply #6 on: October 29, 2015, 10:07:42 pm »

Is there any chance to run a local instance of this rather than using the cloud/AWS?

I'm assuming as the Echo logic is in the cloud but this whole skynet thing concerns me :)
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #7 on: October 29, 2015, 11:13:08 pm »

No, sorry. The API request to your server has to come from the cloud....
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

milehigh

  • Regular Member
  • World Citizen
  • ***
  • Posts: 109
  • nothing more to say...
Re: JRiver Amazon Echo Integration - help me test?
« Reply #8 on: October 30, 2015, 01:58:23 pm »

hi,

I am using mc18 - I have my key and the server is password protected.  When I try to enable I get the following error:  unable to link your skill

not sure what is wrong.  Any suggestions?
Logged

QuickCarl2K1

  • Recent member
  • *
  • Posts: 5
Re: JRiver Amazon Echo Integration - help me test?
« Reply #9 on: October 30, 2015, 02:16:37 pm »

Went through all the setup on the Amazon Developer side and the app shows up in Alexa for me.  However, when I enable the skill in Alexa, it does nothing but show a blank page in the app.
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #10 on: October 30, 2015, 02:54:45 pm »

Thanks guys!  Obviously, something isn't right -- I've been tinkering with various things, and I'm guess I've managed to break the OAuth service I set up. (For security, the account linking between the Alexa app and JRiver requires some passing around/verifying of authorization tokens.)

I'll take a look at it tonight or tomorrow, and post back here when (hopefully) I've got it worked out.

QuickCarl2K1: I think it might be necessary to go to use a web browser for account linking (http://echo.amazon.com/), and not the app. Your browser might send you a scary message about being redirected to a non-trusted site, but you can click through to it anyway. I bet the app just gives you a white screen. (I'm using a self-signed certificate for the HTTPS, hence the scary message.)

Again, I really appreciate the help!
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #11 on: October 30, 2015, 05:46:13 pm »

Hmm. Well, it's now working for me.

I can confirm that you cannot set it up through the app (again, this is because I didn't shell out the money for a proper certificate for this test,  I just just created a self signed one.)

And again, your web browser will likely give you a message about this untrusted certificate, but you can proceed.

Thanks again,

Steve

Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

QuickCarl2K1

  • Recent member
  • *
  • Posts: 5
Re: JRiver Amazon Echo Integration - help me test?
« Reply #12 on: October 31, 2015, 06:03:31 am »

You are correct, I was getting just a white screen in the Android app.

When I visit the link you gave with a browser, It gives me a popup, which as you guessed aroused security concerns because of the certificate.  Bypassing those yielded a 504 Gateway Time-out nginx/1.6.2 error.

Same results every time I try to enable my app.
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #13 on: October 31, 2015, 09:00:51 am »

oops. I forgot to plug it back in.  :)

Should be up now.

(Feel free to send me an email, if you'd prefer: sarkonovich at gmail dot com, if you run into any more trouble.)

Steve
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

QuickCarl2K1

  • Recent member
  • *
  • Posts: 5
Re: JRiver Amazon Echo Integration - help me test?
« Reply #14 on: October 31, 2015, 12:19:13 pm »

When I input the Media Server Access Key, I always get the message form the Alexa app that it can't link My skill.
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #15 on: October 31, 2015, 12:39:34 pm »

I see. It's another OAuth thing. The security protocols won't let me just have others try out my program the way I was hoping.
(Basically, after you enter your credentials, it's sending you to the wrong URL)

I'll have to make this program available in a different way (which doesn't really let me test out the whole linking procedure. Frustrating.)

Anyway, if you can give me the 'Redirect URL' on the Publishing Information page, I can set it up for you on a one off basis.

Best,
Steve
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

QuickCarl2K1

  • Recent member
  • *
  • Posts: 5
Re: JRiver Amazon Echo Integration - help me test?
« Reply #16 on: November 01, 2015, 09:14:18 am »

Sent a PM with the link.
Logged

QuickCarl2K1

  • Recent member
  • *
  • Posts: 5
Re: JRiver Amazon Echo Integration - help me test?
« Reply #17 on: November 06, 2015, 06:37:37 am »

Steve, wondering if you got my PM?
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #18 on: November 06, 2015, 08:06:57 am »

I did. Sorry, I thought I PM'ed you back right away.

You should give it a go now!
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

cgott42

  • Junior Woodchuck
  • **
  • Posts: 78
Re: JRiver Amazon Echo Integration - help me test?
« Reply #19 on: November 19, 2015, 12:05:26 pm »

The link in the OP isn't working.
thx
Is this just to play music, or can we use the Alexa Echo to control playback of video shown on JRiver?
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #20 on: November 19, 2015, 12:27:39 pm »

Hello!

Yeah, I pulled down the link. It turns out, given the security protocol, there is no way to test this the way I wanted.

However, the app is in the process of being certified by Amazon. I had a talk with them last week, and it shouldn't be too long until it's officially released. (I hope.)

Right now, it's just for music. It allows you to play music, create play doctor playlists, add songs to the playing now queue, and voice search your library. So, you can say for example, "What do I have by Bob Dylan," and the Echo will tell you. It's pretty cool, actually!

Steve
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

cgott42

  • Junior Woodchuck
  • **
  • Posts: 78
Re: JRiver Amazon Echo Integration - help me test?
« Reply #21 on: November 19, 2015, 12:53:15 pm »

Great to hear.
When you ask Alexa to play a song from your JRiver library - does she respond verbally or does she just play it.
I'm trying to use IFTTT w/Harmony to tell Alexa to FF/Rew, etc my JRiver video playback - but it's annoying that she verbally repeats my request before doing it
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #22 on: November 19, 2015, 02:36:04 pm »

It depends. If you ask it to play something, it will repeat what you asked for. This way, at least, you can tell if it heard you correctly.

If you say "next track", or "pause", or "turn up the volume," she just says, "Okay."

Steve
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

johnso515

  • Recent member
  • *
  • Posts: 8
Re: JRiver Amazon Echo Integration - help me test?
« Reply #23 on: December 12, 2015, 07:16:35 am »

What is the status of this?  I can no longer access the http://alexatesting.elasticbeanstalk.com/house_band links.  I had the skill mostly defined but have not been able to complete it.  Really looking forward to this and willing to help however I can.  Thanks
-jss
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #24 on: December 12, 2015, 08:46:54 am »

Sorry. I took down that information. Turns out, I couldn't beta test the way I'd like given certain security constraints.

The app is (still) being certified by Amazon. I'm hoping it will be out within the month. They tell me they're working on it!

Here's a short demo of it in action:

https://www.youtube.com/watch?v=dqBOaoEssN0

Best,
Steve
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

HTPC4ME

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2760
  • LIFE IS A RADIO... CRANK IT UP TO 11!
Re: JRiver Amazon Echo Integration - help me test?
« Reply #25 on: January 12, 2016, 06:33:46 pm »

excited to see what comes of this.
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #26 on: January 12, 2016, 06:56:50 pm »

Me too!

After a rather prolonged discussion/certification process, it was kicked back to me. (Given how new Alexa is, they are getting clearer on the rules as they go along.) They decided that 3rd party developers are not allowed to store user credentials directly. All authentication has to use OAuth2 (fair enough.)

So, I've sent it back to them *without* provding for authentication...i.e., when it comes out it won't immediately work with password protected servers. But, I'm working in implementing the OAuth requirement as well.

I'll let you know...

Steve
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration
« Reply #27 on: January 13, 2016, 04:39:56 pm »

Well, that was quick...

It should be released within the week. Just check the "Skills" section of the Alexa app.

Although it's soon to be released, I'm still actively improving it. In the end, I think there are just limits (mine, for sure, and the Echo's) to voice searching a music library. For example, it can find the band Sigur Ros by name, but getting at their album,

Meš suš ķ eyrum viš spilum endalaust

is tricky    :)

Steve
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

imugli

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1598
Re: JRiver Amazon Echo Integration - help me test?
« Reply #28 on: January 18, 2016, 04:28:28 pm »

Anyone else thinking zone control here?

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #29 on: January 18, 2016, 05:54:56 pm »

That's a good idea. But I didn't think of it!

Right now, you cannot change zones via Alexa. But depending on the interest in the project, I'd be happy to look into adding that feature.

Steve
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
JRiver now has Amazon Echo Integration
« Reply #30 on: January 19, 2016, 07:10:47 pm »

House Band for JRiver is now available in the skills tab of the Alexa app.

There's a little more information here:

http://yabb.jriver.com/interact/index.php?topic=15326.msg717359#msg717359


Please feel free to write me directly with suggestions/bugs, etc.

Thanks,
Steve

Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

fchaffin

  • Member
  • *
  • Posts: 1
Re: JRiver Amazon Echo Integration - help me test?
« Reply #31 on: September 19, 2016, 10:36:24 am »

I use Media Center to manage my 700+ CD collection.  I purchased an Amazon Echo a few months ago when I heard about House Band.  I really like the idea of being able to control Media Center via voice.

Is there a dedicated thread in the JRiver Media Center forum for House Band but did not find it?  Can you create one?

Is there a list of all the commands the House Supports? 

I worked repairing and programming computers from 1982 till I retired in 2006.  if I can help you refine House Band in any way let me know. 
Logged

sarkonovich

  • Galactic Citizen
  • ****
  • Posts: 312
Re: JRiver Amazon Echo Integration - help me test?
« Reply #32 on: September 19, 2016, 10:47:08 am »

Hello.

This seems to be the de facto House Band thread:
http://yabb.jriver.com/interact/index.php?topic=102709

If you go to the Alexa app (or web page) and look at  "about this skill" under HouseBand, that gives a pretty complete list of commands.

The basic trick to searching with house band is that it supports the following search tags (with examples):


[Album Artist (auto)]=talking heads  ("Play songs by talking heads")
[Album]=harvest  ("Play the album harvest")
[name]=yellow moon ("Play the song yellow moon")

If you don't use "song", "by", "album" in your searches, you can do a straight string search:

"Play yellow moon" will match queue up everything matching those words. (As opposed to, "play the song yellow moon" or "play the album yellow moon."

I keep saying that I am actively working on House Band, and I am -- it's sort of 3/4 of the way through a complete re-write, but time is short until December/January....

I'm glad you like it!

Steve
Logged
JRiver 21 Linux (ARM) on Pine 64 => PS Audio DirectWave DAC => ATC 50asl speakers. JRiver controlled by House Band on Amazon Echo

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72436
  • Where did I put my teeth?
Re: House Band -- JRiver Amazon Echo Integration
« Reply #33 on: November 06, 2016, 07:48:33 pm »

Logged
Pages: [1]   Go Up