BookPlayer icon indicating copy to clipboard operation
BookPlayer copied to clipboard

Siri compatibility

Open fishmealx opened this issue 1 year ago • 1 comments

It would be good to add compatibility with Siri (on iPhone). Right now it doesn’t work for all features. For example, while it will play and pause, “Hey Siri, go back 15 seconds” or similar doesn’t work. It also won’t skip, restart, or go back chapters. Less useful, it doesn’t allow you to play specific books via Siri.

fishmealx avatar Sep 05 '24 14:09 fishmealx

@fishmealx I looked into this a while back, I did add support for custom intervals for the app intents, but it looks like you need to use the exact wording:

# For rewinding
Rewind in BookPlayer
Jump back in BookPlayer
Skip back in BookPlayer
Go back in BookPlayer

# For fast forward
Fast forward in BookPlayer
Skip forward in BookPlayer
Jump forward in BookPayer

You'll then be prompted to specify the interval, which can be in the form you prefer (seconds / minutes / hours). I looked into making this a single step, but so far as I saw, App Intents only support defined options that can be included in the trigger command, no open variable can be put in there (If anyone has more info on this, input would be welcome so I can revisit this)

Regarding the phrasing, you can set your own via the Shortcuts app, these app intents should be exposed in there

GianniCarlo avatar Oct 07 '24 15:10 GianniCarlo