Jump to content

[BETA] Emby with Alexa (French)


Angelblue05

Recommended Posts

Angelblue05

@@DGMayor

 

I see your requests. Your server returns no players. But it is working and your connection is secure now. You can't set the default player as Alexa itself (at least for now, don't know if I will change this). I'll make a special message for that scenario. Thank you.

 

That's why I added special player words to target Alexa only.

 

You should be able to say play the artist Underworld on (this player/Alexa).

Edited by Angelblue05
Link to comment
Share on other sites

jhoff80

I tried a bunch of things just now after adding the skill.  There's a combination of errors from the skill and errors in recognition.  About 80% of the time it recognizes m.b. home but about 20% it sees n.b. home.  Whenever it sees n.b. home, it ends up trying through Spotify.

 

Ignoring the voice recognition issues though, I successfully got it to work saying 'open emby home' then 'play music on this player'.  I've had a few struggles since then trying to get it to start an artist or album directly and the response has been "There is a problem with the requested skill's response.'  I wonder if part of the issue is the album I was trying.  Alexa is recognizing me saying 'ten thousand days' but it's in my library as '10,000 Days'.  I haven't had any success with "Ask Emby Home to" do anything yet either.

 

But now it seems totally messed up.  After about 5 or so attempts in a row, now I can't even "Open Emby Home" without "There is a problem with the requested skill's response."

 

If I open the Alexa app homepage, the error it keeps giving me is "The SpeechletResponse must not be null".

Edited by jhoff80
  • Like 1
Link to comment
Share on other sites

Angelblue05

Thanks, checking right now. I was trying to fix another issue at the same time. So this might be it.

 

Edit: No, it's giving an error trying to load the current playlist. I'll let you know when it is fixed.

Edited by Angelblue05
Link to comment
Share on other sites

Angelblue05

@@jhoff80

 

Ok next time you try it should unbork your situation. I'm still looking into how this bork happened. :)

 

Edit: I'm also looking into the errors you are getting with Albums, it should be corrected now.

Edited by Angelblue05
Link to comment
Share on other sites

Angelblue05

Ok, give me a bit of time to fix artist. I see what went wrong with your request. I'm also adding your 10,000 Days to the list of special titles. Like that it can be found.

Link to comment
Share on other sites

jhoff80

Right now, "play music on this player" is the most reliable command.

Play the album 10,000 days on this player: now gave suggestions for other albums but didn't find the right one.

Play the artist a perfect circle on this player: somehow thought I was saying "play the artist home" and started suggesting movie titles (home alone, etc.).  That is on Alexa though.

Play the artist nine inch nails:  "I could not find 9" nails" (somehow this got changed by the emby search to the " instead of inch.  The Alexa app history seems to show it was passed along as the word inch though.)

Play the band tool:  "say the number to select to choose 1.  10,000 days by tool.  2.  lateralus, by tool.  3.  opiate, by tool.  false"  (I suspect maybe the Æ character in Ænima broke it.)

Play the album addicted:  "There was a problem with the requested skill's response".

Overall, I'd love to be able to set the local player as a default player.  The movie/TV search by Alexa seemed like it'd be nice to use, but I have used it maybe twice ever so I don't need to set a TV as a default.

 

 

Personally, "on Alexa" seems a little weird to me too, since the assistant is Alexa and the speaker is the Echo, but if I could set play local as default that wouldn't matter at all anyway.

 

I don't know how much control you have over searches in general, but even though the one search glitched out on Alexa's end, it seems a little silly that if I say "play the artist …." that it would ever suggest movie titles.  But again, that might be on Amazon.

 

Also, it seems a little weird to me that Emby Home's music playback doesn't show up in the now playing section of the Alexa app.  Not sure how that works.

 

Regardless of the trouble I'm having though, this is a huge improvement.  Much better than turning on the projector and AV receiver to have music playing in the background in the living room.

Edited by jhoff80
  • Like 1
Link to comment
Share on other sites

Angelblue05

Thanks a lot for the feedback. I am working on the code as we speak. 

 

 

Please try after I tell you the code is ready for testing. It's almost done but I need a bit more time. Thank you.

 

I've added echo/echo show to the list of special, meaning this player. I still don't know but I will take your feedback into consideration. I just don't want to end up with a scenario where someone sets it to the Echo device, then nothing seems to work except for playing audio.

Edited by Angelblue05
  • Like 1
Link to comment
Share on other sites

Angelblue05

Ok play the artist/album selection should be fully functional now. If you want a simple shuffle, then say shuffle the artist.

 

I understand that it seems a bit weird. It's the fuzzy search. First it'll go with what it has, then try the same with only the first four letters if it cannot find anything and then finally, in case the media format was incorrect (calling it a movie when it's a video, etc..) it will try with the default movies,series,musicvideos search.

 

For music playback, I was wondering the same thing. The metadata is filled, but it doesn't seem to have an effect on the now playing.

Edited by Angelblue05
Link to comment
Share on other sites

Angelblue05

@@jhoff80

 

Ok I've made it possible to set the default player as this player. Music should be fully in place as well. Let me know if you encounter any issues. Thank you.

 

Still have not figured out why now playing is not filling with the metadata. I can't seem to find any documentation on it. I'll probably guess it just doesn't work with custom skills? 

Edited by Angelblue05
  • Like 1
Link to comment
Share on other sites

jhoff80

Ah, could be that for now playing, yeah.  Almost all of my previous searches listed in the last post are working today, except for "play the artist nine inch nails".  That one still gets confused in search and still says it can't find 9" nails.  But huge improvements from whatever you updated last night, wow.

 

Now if only Amazon would let me set a third-party skill as a default music player :D (but obviously that one isn't on you).

Edit:  Also, if it's possible, it might be nice to say the album name when trying to select a song.  If I say for example:  "Play the song 3 libras" it asks me to "say the number to select: 1.  3 Libras by A Perfect Circle.  2.  3 Libras by A Perfect Circle".  One of those is from the album Mer de Noms and one of them is from a live box set.. but there's no way of telling which is which.  And it's not the same every time.  But then, I know it's a bit of a balancing act for how much information Alexa should respond with, since typically you also would want the prompts to be quick, so I could see this one going either way.

Edited by jhoff80
  • Like 1
Link to comment
Share on other sites

jhoff80

For some reason, one album I've tried is failing out on playback.  It's 320kbps MP3, just like the majority of my music, but it attempts (and fails) to transcode.  Other 320kbps MP3 files work fine, so I'm not sure why it's doing that for this album.

2018-06-10 11:24:02.006 Info HttpServer: HTTP GET https://remote.server.com:8097/emby/Audio/96a8a7e31e851490c34a49b08013cf27/universal?PlaySessionId=6887dfa90d5f43fa9ff0f32cee5b1405&MaxStreamingBitrate=384000&MaxSampleRate=48000&EnableRedirection=True&TranscodingContainer=mp3&Container=mp3,aac&AudioCodec=aac&UserId=a0e98ef148b34a4fb2552434c9119804&TranscodingProtocol=hls&EnableRemoteMedia=True&DeviceId=b1639a25927039311981edbe5e4ef981. UserAgent: AlexaMediaPlayer/2.0.201023.0 (Linux;Android 5.1.1) ExoPlayerLib/1.5.9
2018-06-10 11:24:02.008 Info App: User policy for Joe. EnableAudioPlaybackTranscoding: True
2018-06-10 11:24:02.008 Info App: Bitrate exceeds DirectStream limit: media bitrate: 400195, max bitrate: 384000
2018-06-10 11:24:02.008 Info App: RemoteClientBitrateLimit: 12000000, RemoteIp: IP, IsInLocalNetwork: False
2018-06-10 11:24:02.008 Info App: Bitrate exceeds DirectStream limit: media bitrate: 400195, max bitrate: 384000
2018-06-10 11:24:02.008 Info App: RemoteClientBitrateLimit: 12000000, RemoteIp: IP, IsInLocalNetwork: False
2018-06-10 11:24:02.008 Info App: RemoteClientBitrateLimit: 12000000, RemoteIp: IP, IsInLocalNetwork: False
2018-06-10 11:24:02.009 Info HttpServer: HTTP Response 200 to IP. Time: 3ms. https://remote.server.com:8097/emby/Audio/96a8a7e31e851490c34a49b08013cf27/universal?PlaySessionId=6887dfa90d5f43fa9ff0f32cee5b1405&MaxStreamingBitrate=384000&MaxSampleRate=48000&EnableRedirection=True&TranscodingContainer=mp3&Container=mp3,aac&AudioCodec=aac&UserId=a0e98ef148b34a4fb2552434c9119804&TranscodingProtocol=hls&EnableRemoteMedia=True&DeviceId=b1639a25927039311981edbe5e4ef981 
2018-06-10 11:24:02.020 Info HttpServer: HTTP GET https://remote.server.com:8097/emby/Audio/96a8a7e31e851490c34a49b08013cf27/universal?PlaySessionId=6887dfa90d5f43fa9ff0f32cee5b1405&MaxStreamingBitrate=384000&MaxSampleRate=48000&EnableRedirection=True&TranscodingContainer=mp3&Container=mp3,aac&AudioCodec=aac&UserId=a0e98ef148b34a4fb2552434c9119804&TranscodingProtocol=hls&EnableRemoteMedia=True&DeviceId=b1639a25927039311981edbe5e4ef981. UserAgent: AlexaMediaPlayer/2.0.201023.0 (Linux;Android 5.1.1) ExoPlayerLib/1.5.9
2018-06-10 11:24:02.022 Info App: User policy for Joe. EnableAudioPlaybackTranscoding: True
2018-06-10 11:24:02.022 Info App: Bitrate exceeds DirectStream limit: media bitrate: 400195, max bitrate: 384000
2018-06-10 11:24:02.022 Info App: RemoteClientBitrateLimit: 12000000, RemoteIp: IP, IsInLocalNetwork: False
2018-06-10 11:24:02.022 Info App: Bitrate exceeds DirectStream limit: media bitrate: 400195, max bitrate: 384000
2018-06-10 11:24:02.022 Info App: RemoteClientBitrateLimit: 12000000, RemoteIp: IP, IsInLocalNetwork: False
2018-06-10 11:24:02.022 Info App: RemoteClientBitrateLimit: 12000000, RemoteIp: IP, IsInLocalNetwork: False
2018-06-10 11:24:02.023 Info HttpServer: HTTP Response 200 to IP. Time: 3ms. https://remote.server.com:8097/emby/Audio/96a8a7e31e851490c34a49b08013cf27/universal?PlaySessionId=6887dfa90d5f43fa9ff0f32cee5b1405&MaxStreamingBitrate=384000&MaxSampleRate=48000&EnableRedirection=True&TranscodingContainer=mp3&Container=mp3,aac&AudioCodec=aac&UserId=a0e98ef148b34a4fb2552434c9119804&TranscodingProtocol=hls&EnableRemoteMedia=True&DeviceId=b1639a25927039311981edbe5e4ef981 
2018-06-10 11:24:02.033 Info HttpServer: HTTP GET https://remote.server.com:8097/emby/Audio/96a8a7e31e851490c34a49b08013cf27/main.m3u8?PlaySessionId=6887dfa90d5f43fa9ff0f32cee5b1405&MaxStreamingBitrate=384000&MaxSampleRate=48000&EnableRedirection=True&TranscodingContainer=mp3&Container=mp3,aac&AudioCodec=aac&UserId=a0e98ef148b34a4fb2552434c9119804&TranscodingProtocol=hls&EnableRemoteMedia=True&DeviceId=b1639a25927039311981edbe5e4ef981&SegmentContainer=mp3&AudioBitrate=384000. UserAgent: AlexaMediaPlayer/2.0.201023.0 (Linux;Android 5.1.1) ExoPlayerLib/1.5.9
2018-06-10 11:24:02.035 Info HttpServer: HTTP Response 200 to IP. Time: 2ms. https://remote.server.com:8097/emby/Audio/96a8a7e31e851490c34a49b08013cf27/main.m3u8?PlaySessionId=6887dfa90d5f43fa9ff0f32cee5b1405&MaxStreamingBitrate=384000&MaxSampleRate=48000&EnableRedirection=True&TranscodingContainer=mp3&Container=mp3,aac&AudioCodec=aac&UserId=a0e98ef148b34a4fb2552434c9119804&TranscodingProtocol=hls&EnableRemoteMedia=True&DeviceId=b1639a25927039311981edbe5e4ef981&SegmentContainer=mp3&AudioBitrate=384000 
2018-06-10 11:24:02.053 Info HttpServer: HTTP GET https://remote.server.com:8097/emby/Audio/96a8a7e31e851490c34a49b08013cf27/hls1/main/0.mp3?PlaySessionId=6887dfa90d5f43fa9ff0f32cee5b1405&MaxStreamingBitrate=384000&MaxSampleRate=48000&EnableRedirection=True&TranscodingContainer=mp3&Container=mp3,aac&AudioCodec=aac&UserId=a0e98ef148b34a4fb2552434c9119804&TranscodingProtocol=hls&EnableRemoteMedia=True&DeviceId=b1639a25927039311981edbe5e4ef981&SegmentContainer=mp3&AudioBitrate=384000. UserAgent: AlexaMediaPlayer/2.0.201023.0 (Linux;Android 5.1.1) ExoPlayerLib/1.5.9
2018-06-10 11:24:02.054 Info App: C:\Users\Joe\AppData\Roaming\Emby-Server\system\ffmpeg.exe -i file:"\\server\music\A Perfect Circle\Mer de Noms\01 - The Hollow.mp3" -threads 0   -acodec aac -strict experimental -ab 384000 -ac 2 -vn -f segment -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 -start_at_zero -segment_time 3  -individual_header_trailer 0 -segment_format mp3 -segment_list_type m3u8 -segment_start_number 0 -segment_list "E:\Emby\transcoding-temp\e33c2cccaffd7f1a737f101d83823c03.m3u8" -y "E:\Emby\transcoding-temp\e33c2cccaffd7f1a737f101d83823c03%d.mp3"
2018-06-10 11:24:02.227 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.4.1.13
	Command line: C:\Users\Joe\AppData\Roaming\Emby-Server\system\EmbyServer.dll -service
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 8
	Program data path: C:\Users\Joe\AppData\Roaming\Emby-Server
	Application directory: C:\Users\Joe\AppData\Roaming\Emby-Server\system
	System.Exception: Error starting ffmpeg
	   at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, EncodingOptions encodingOptions, CancellationTokenSource cancellationTokenSource, Boolean acquireResources)
	   at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment(StreamRequest request, String segmentId)
	   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
	System.Exception
	   at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, EncodingOptions encodingOptions, CancellationTokenSource cancellationTokenSource, Boolean acquireResources)
	   at Emby.Server.MediaEncoding.Api.Hls.DynamicHlsService.GetDynamicSegment(StreamRequest request, String segmentId)
	   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)

(changed server address and local ip address)

{"Protocol":"File","Id":"96a8a7e31e851490c34a49b08013cf27","Path":"\\\\server\\music\\A Perfect Circle\\Mer de Noms\\01 - The Hollow.mp3","Type":"Default","Container":"mp3","Name":"01 - The Hollow","IsRemote":false,"ETag":"7600e09e1f79329f0ac688466e6ef8b5","RunTimeTicks":1787879936,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":true,"MediaStreams":[{"Codec":"mp3","TimeBase":"1/14112000","CodecTimeBase":"1/44100","DisplayTitle":"MP3 stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":320000,"Channels":2,"SampleRate":44100,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"mjpeg","Comment":"Cover (front)","TimeBase":"1/90000","CodecTimeBase":"0/1","IsInterlaced":false,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":2789,"Width":2839,"RealFrameRate":90000,"Type":"EmbeddedImage","AspectRatio":"","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuvj420p","Level":-99,"IsAnamorphic":false}],"Formats":[],"Bitrate":400195,"RequiredHttpHeaders":{}}

User policy for Joe: EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True

C:\Users\Joe\AppData\Roaming\Emby-Server\system\ffmpeg.exe -i file:"\\server\music\A Perfect Circle\Mer de Noms\01 - The Hollow.mp3" -threads 0   -acodec aac -strict experimental -ab 384000 -ac 2 -vn -f segment -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 -start_at_zero -segment_time 3  -individual_header_trailer 0 -segment_format mp3 -segment_list_type m3u8 -segment_start_number 0 -segment_list "E:\Emby\transcoding-temp\ad828e6d70dbc6bcec2cf6b846ea8ff4.m3u8" -y "E:\Emby\transcoding-temp\ad828e6d70dbc6bcec2cf6b846ea8ff4%d.mp3"

ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
[mp3 @ 00000259d5d0b500] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'file:\\server\music\A Perfect Circle\Mer de Noms\01 - The Hollow.mp3':
  Metadata:
    title           : The Hollow
    artist          : A Perfect Circle
    track           : 1/12
    album           : Mer de Noms
    disc            : 1/1
    TMED            : CD
    MusicBrainz Release Group Id: b2d16a29-8953-3e14-bc76-4c775b3d8afd
    TORY            : 2000
    MusicBrainz Release Track Id: 0bcf9681-147a-359d-9cdc-9b6fbc8569d7
    TSRC            : USVI20000044

I'm on the beta Server if that makes a difference.

Link to comment
Share on other sites

DGMayor

I got it to play a song! lol

 

Alexa heard: "ask m. b. home to play the artist underworld on this player"

 

Say the number to select.

1. Underworld.,

2. Underworld with High Contrast & Tiësto.,

3. Underworld with Mark Knight and D. Ramirez.,

Alexa heard: "one"

Say the number you want.
 
1. (Maxi) Dark & Long.,
 
2. 1992-2002.,
 
3. Athens.,
 
Alexa heard: "two"
 
 
Play
Emby
Bigmouth is currently playing.
 
 
 
Unfortunately, when I said "alexa, Stop", it just fails.  Alexa, stop playing music also fails.
 
Request Identifier: amzn1.echo-api.request.06a6902e-3733-4c7d-94b5-0a635d8eaf97
 
 
Eventually had to make another request to overwrite this one.
 
 
Something simpler like "Alexa, ask M B Home to shuffle songs from the artist Underworld on this player" would be nice, but that doesn't appear to work yet.
Link to comment
Share on other sites

Angelblue05

Can you give it a try again? The stop should work now. I didn't think anyone was testing hehe, I was trying to fix the video player section and introduced a bug which prevented you from stopping alexa. Should be ok now. I won't touch it until in a few hours.

Edited by Angelblue05
Link to comment
Share on other sites

Angelblue05

The current phrases is "shuffle songs by the artist Underworld on this player". From the album, By the artist. I will try to mix it up, hopefully it doesn't confuse Alexa :)

 

 Or just shuffle the artist Underworld on this player.

Edited by Angelblue05
Link to comment
Share on other sites

Guest asrequested

I've been trying to play music through alexa. She understands what I'm saying, but just gives me player options.

 

5b1dc005ab59c_Snapshot_127.jpg

Link to comment
Share on other sites

Angelblue05

@

 

You need a secured connection. Make sure your server reports https in your dashboard, then update the server saved by completing the account linking process again.

 

It is in the OP.

Link to comment
Share on other sites

Guest asrequested

Oh, well then I can't use it. I'm running a VPN. Pfsense handles the encryption. C'est la vie.

Link to comment
Share on other sites

Guest asrequested

I chose a VPN so I don't have to use certificates. It's fine. It's working quite well with the players. I was trying to play a music video by daughtry, but as I only have one video, I can't use the artist name. I had to use the song title. But that's a library issue, not the skill.

Link to comment
Share on other sites

Angelblue05

Ah well services like that, they ask for a secure connection. There is no way around it. :) Playback comes from Alexa directly, if it was up to the skill then I could do something about it. Well it is not the end of the world. It just means you cannot playback onto the device itself but that still leaves all the other Emby players you can use (even the web client).

Edited by Angelblue05
Link to comment
Share on other sites

Guest asrequested

Yeah, I just wanted to do it, because I could. Turns out that I can't lol

 

The invocation is working very well. She's got it every time, so far. Well done!

  • Like 1
Link to comment
Share on other sites

Angelblue05

@@jhoff80

 

Can you try nine inch nails again? I want to make sure my exception list works correctly with the escaped character \".

Link to comment
Share on other sites

jhoff80

Unfortunately seems to be the same issue.

 

"Play the artist nine inch nails" = "I could not find 9" nails.  You can try specifying the media type, like, play the movie dot dot dot, you get the rest."

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...