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

AppIntent to perform tasks like resyncing library through Siri and/or Shortcuts #441

Open
roygbyte opened this issue Mar 22, 2025 · 4 comments
Labels
enhancement New feature or request

Comments

@roygbyte
Copy link

I would like to suggest adding more AppIntents to amperfy. My specific use cases involve automation of tasks (resyncing the library, changing the playing/pausing state of music, skipping to another song). My objective is to trigger these actions depending on conditionals available in Apple's Shortcuts app. For instance, playing album when my focus state changes.

amperfy already has two intents, from what I know: PlayID and Search and Play. These could likely be a starting point for adding this feature to amperfy.

Do you like this idea?

@BLeeEZ
Copy link
Owner

BLeeEZ commented Mar 23, 2025

Hi,
yes I like that idea :)
I already implemented some of your requests as X-Callback-URL. This can be used in Siri Shortcuts too. A full documentation of all available function can be found in App: "Settings" -> "X-Callback-URL Documentation".

I agree that direct Intents are better visible to new users. The "problem" here is that Intents by itself are quite work intensive. Many places in the App need to be adjusted for new intents. For that reason I switched to X-Callback-URLs since these are really fast to implement.

Can you give me a list of additional functions that should be available?

@BLeeEZ BLeeEZ added the enhancement New feature or request label Mar 23, 2025
@roygbyte
Copy link
Author

Oh that's wicked. I have reviewed what you built already, and tried the playRandomSongs. Nice! The PlayID callback looks useful, too. I don't see the IDs available anywhere in the interface. As a user, do you retrieve those manually from you server if/when you use program this callback?

For me, again, the niche feature req is resyncing library and downloading all artworks in library. Be cool to have a way to play recent albums or songs, but now I'm just dreaming new things up, haha.

Just thinking "aloud": but can the AppIntent be implemented to call a given X-Callback-URL on behalf of the user? I think that's possible. But I don't see a need for it anymore, tbh. The x-callback-url is a perfectly suitable interface for automation using Shortcuts. It lacks the voice control and abstraction layer (you see them in Shortcuts) that an AppIntent gives you, but i personally don't have a use for more than what x-callback-url provides. Moreover, a person can create their own Siri capable shortcuts around the x-callback-urls. Just takes a bit more effort.

@BLeeEZ
Copy link
Owner

BLeeEZ commented Mar 23, 2025

There is an option to display and copy IDs: Settings -> Display & Interaction -> Detailed Information

@roygbyte
Copy link
Author

That's wicked!

I am going to poke my head into the source code and see what kind of challenge I'd be up against if I try to make this my contribution.

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

No branches or pull requests

2 participants