Originally created by @mr-ransel on GitHub (Nov 29, 2023).
Is your feature request related to a problem?
I'm often using my phone via Google Assistant because my hands are busy and it would be really handy to be able to start new audiobooks or my most recent audiobook hands-free without having to grab the phone and set it up.
Describe the solution you'd like
My end goal would be to be able to ask Google Assistant on Android to play my last audiobook on audio bookshelf or to request a specific audiobook on audiobookshelf. In other words, a basic hands-free option for starting books.
Describe alternatives you've considered
The native Google Assistant functionality using audio bookshelf as a media player already works. You can say play, pause, skip forward and skip back and all of those functions work fine. If you've already started the book recently and they're still an active media session, you can just say play or pause and then the book will get started, but only if the book has recently been listened to.
Additional context
Implementing this is actually pretty easy. All you need to do is set up a new ntent and then an entry point with some code for selecting the audiobook from the library and beginning playback. Here's a link to the Google assistant documentation and tutorial on creating a new app action intent and how to trigger operations directly from Google Assistant. https://codelabs.developers.google.com/codelabs/appactions#1
Specifically, I think what would be helpful is an intent for play most recent and an intent for play arbitrary book or podcast.
Originally created by @mr-ransel on GitHub (Nov 29, 2023).
### Is your feature request related to a problem?
I'm often using my phone via Google Assistant because my hands are busy and it would be really handy to be able to start new audiobooks or my most recent audiobook hands-free without having to grab the phone and set it up.
### Describe the solution you'd like
My end goal would be to be able to ask Google Assistant on Android to play my last audiobook on audio bookshelf or to request a specific audiobook on audiobookshelf. In other words, a basic hands-free option for starting books.
### Describe alternatives you've considered
The native Google Assistant functionality using audio bookshelf as a media player already works. You can say play, pause, skip forward and skip back and all of those functions work fine. If you've already started the book recently and they're still an active media session, you can just say play or pause and then the book will get started, but only if the book has recently been listened to.
### Additional context
Implementing this is actually pretty easy. All you need to do is set up a new ntent and then an entry point with some code for selecting the audiobook from the library and beginning playback. Here's a link to the Google assistant documentation and tutorial on creating a new app action intent and how to trigger operations directly from Google Assistant. https://codelabs.developers.google.com/codelabs/appactions#1
Specifically, I think what would be helpful is an intent for play most recent and an intent for play arbitrary book or podcast.
We could probably just use this built in intent template to launch the app to a specific/most recent audiobook
https://developer.android.com/reference/app-actions/built-in-intents/common/open-app-feature
@nichwall commented on GitHub (Nov 29, 2023):
Related to https://github.com/advplyr/audiobookshelf-app/issues/858 and https://github.com/advplyr/audiobookshelf-app/issues/237 but has some examples with documentation
If you do end up adding this intent, please consider adding an intent to start and stop the sleep timer, it would be helpful to be able to use them to set up tasker to automatically turn off the sleep timer when getting into your car, and turn back on when getting out, also with using NFC tags near your desk or near bed.
With my job, it can require me to be up at all hours of the night and possibly have to jump up and drive for hours, but I'm sure I'm not the only one using an intent for doing things like that with a sleep timer since other audiobook apps (like smart audio book player) have that same feature.
@JamesDean3 commented on GitHub (May 11, 2025):
If you do end up adding this intent, please consider adding an intent to start and stop the sleep timer, it would be helpful to be able to use them to set up tasker to automatically turn off the sleep timer when getting into your car, and turn back on when getting out, also with using NFC tags near your desk or near bed.
With my job, it can require me to be up at all hours of the night and possibly have to jump up and drive for hours, but I'm sure I'm not the only one using an intent for doing things like that with a sleep timer since other audiobook apps (like smart audio book player) have that same feature.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @mr-ransel on GitHub (Nov 29, 2023).
Is your feature request related to a problem?
I'm often using my phone via Google Assistant because my hands are busy and it would be really handy to be able to start new audiobooks or my most recent audiobook hands-free without having to grab the phone and set it up.
Describe the solution you'd like
My end goal would be to be able to ask Google Assistant on Android to play my last audiobook on audio bookshelf or to request a specific audiobook on audiobookshelf. In other words, a basic hands-free option for starting books.
Describe alternatives you've considered
The native Google Assistant functionality using audio bookshelf as a media player already works. You can say play, pause, skip forward and skip back and all of those functions work fine. If you've already started the book recently and they're still an active media session, you can just say play or pause and then the book will get started, but only if the book has recently been listened to.
Additional context
Implementing this is actually pretty easy. All you need to do is set up a new ntent and then an entry point with some code for selecting the audiobook from the library and beginning playback. Here's a link to the Google assistant documentation and tutorial on creating a new app action intent and how to trigger operations directly from Google Assistant. https://codelabs.developers.google.com/codelabs/appactions#1
Specifically, I think what would be helpful is an intent for play most recent and an intent for play arbitrary book or podcast.
We could probably just use this built in intent template to launch the app to a specific/most recent audiobook
https://developer.android.com/reference/app-actions/built-in-intents/common/open-app-feature
@nichwall commented on GitHub (Nov 29, 2023):
Related to https://github.com/advplyr/audiobookshelf-app/issues/858 and https://github.com/advplyr/audiobookshelf-app/issues/237 but has some examples with documentation
@JamesDean3 commented on GitHub (May 11, 2025):
If you do end up adding this intent, please consider adding an intent to start and stop the sleep timer, it would be helpful to be able to use them to set up tasker to automatically turn off the sleep timer when getting into your car, and turn back on when getting out, also with using NFC tags near your desk or near bed.
With my job, it can require me to be up at all hours of the night and possibly have to jump up and drive for hours, but I'm sure I'm not the only one using an intent for doing things like that with a sleep timer since other audiobook apps (like smart audio book player) have that same feature.