Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Siri Shortcuts #51

Open
slyfoxgh opened this issue Feb 23, 2024 · 10 comments
Open

Feature request: Siri Shortcuts #51

slyfoxgh opened this issue Feb 23, 2024 · 10 comments

Comments

@slyfoxgh
Copy link

I just learned about this app and am looking forward to trying it once it hits the app store.

If it is not already implemented, please add Siri shortcuts support. This is very useful for program shortcuts to play specific books. With multiple libraries and books, it is much faster to use Siri shortcuts to continue playing different media app and switching to different libraries than opening the app and switching to different libraries.

@rasmuslos
Copy link
Owner

Thanks, hopefully soon...

Siri intents are already partially implemented, so you can say "Hey Siri play 1984 by George Orwell". Episodes and podcasts are on the roadmap, and once these are implemented playing media using Siri Shortcuts should be easy.

Switching library, etc. might be a little bit further away.

@slyfoxgh
Copy link
Author

When you say "Switching libraries," do you mean a shortcut to switch libraries or a shortcut to play media from different libraries? I was thinking of a shortcut where you can preset a specific book from a specific library, and then when you run the shortcut, it can start playing the book. In my case, I have a few books from the nonfiction library and the fiction library.

I can create a shortcut where it will give me a list of books (pre-set) to play, and I can choose which one. Another shortcut can be dedicated to a specific book from a specific library.

@rasmuslos
Copy link
Owner

Apparently apple employs little monkeys that just hit random keys on a typewriter until working some code is procured... While you get a Shortcut when you create a PlayMediaIntent for music, you apparently have to create one yourself for audiobooks... So this might actually take longer. Also for some reason that is truly beyond me Siri refused to play podcasts from ShelfPlayer, while Audiobooks work just fine...

But all ABS items have a unique id, so you would not have to specify the library, only the audiobook you would want to play. With the build in implementation (this is not available for some reason) you could just choose a recently played item. With a custom one I have honestly no idea, but I will look into it, but sadly not in the near future.

@rasmuslos
Copy link
Owner

I got shortcuts working in AmpFin, so I will be able to port them to ShelfPlayer soon™️ (rasmuslos/AmpFin@da618e2)

@iamhenry
Copy link

iamhenry commented May 3, 2024

@rasmuslos would love a siri shortcut to add a bookmark. any rough eta for something like this?

i use this shortcut in Prologue app all the time while i'm driving or on a walk. I then use the accessibility feature to double tap the back of the iPhone to trigger the shortcut.

@rasmuslos
Copy link
Owner

Shouldn't be too long, probably in the next release. I did rework the Siri integration, and it is much better now (878f23c). I have to implement programmatic routing first, but after that I can look into implementing Intents or App Intents, I have not figured out the difference yet.

@slyfoxgh
Copy link
Author

slyfoxgh commented May 6, 2024

Siri Shortcuts is not working in 2.4.1

IMG_1418

@rasmuslos
Copy link
Owner

You cannot play nothing. The play intent without any parameters will be removed in the next release.

@dominicwa
Copy link

Hi @rasmuslos, any update on shortcuts in the app? Thanks.

@rasmuslos
Copy link
Owner

Somewhat: They are not going to be part of 2.5.0 which focuses on improving existing code but they are the next thing that I will work on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants