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: Support for Audible playback, by adding the searchPhrase and sanitizedSearchPhrase to the operationPayload #2544

Open
Nantero1 opened this issue Sep 18, 2024 · 0 comments

Comments

@Nantero1
Copy link

Nantero1 commented Sep 18, 2024

Is your feature request related to a problem? Please describe.

I would like to request the addition of support for playing Audible audiobooks via Alexa routines. Currently, there is no ability to trigger specific Audible content (such as audiobooks) by using the searchPhrase and sanitizedSearchPhrase fields available in Alexa routines. This feature would significantly enhance the integration with Audible by enabling audiobook playback! Im currently using NFC tags to trigger the playback of (spotify) music, audible audio books would be great addition for my custom build "Tonie box" :)

Describe the solution you'd like

The solution would involve adding the ability to send sequences with custom searchPhrase and sanitizedSearchPhrase (usually the same value) in the operationPayload for Audible playback. The Alexa API uses these fields to search and play specific Audible content (e.g., audiobooks like "Der taegliche Stoiker").

Here’s an example of the relevant JSON data for the Alexa.Audible.Read sequence:

{
    "@type": "com.amazon.alexa.behaviors.model.Sequence",
    "sequenceId": "amzn1.alexa.sequence.87967050-f256-46fc-b34b-c603ad1c62af",
    "startNode": {
        "@type": "com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode",
        "nodeState": null,
        "name": null,
        "type": "Alexa.Audible.Read",
        "skillId": "amzn1.ask.skill.3b150b52-cedb-4792-a4b2-f656523a06f5",
        "operationPayload": {
            "customerId": "****", 
            "deviceType": "****",
            "deviceSerialNumber": "****",
            "searchPhrase": "der taegliche stoiker", <-- audio book search phrase
            "sanitizedSearchPhrase": "der taegliche stoiker", <-- usually the same string
            "locale": "de-DE"  # not sure if really needed
        },
        "presentationDataList": null,
        "clientData": null,
        "context": null,
        "tag": null
    }
}

Describe alternatives you've considered

I’ve explored other options within the Alexa app and routines, but none offer the ability to directly trigger dynamically Audible playback for a user-defined title using a simple sequence. I am currently thinking of directly using the audible api, but I am now sure on how to force the playback on my alexa device. Even if I succeed to playback, there is no guarantee that it will playback on my Alexa speakers.

Thank you for considering this feature request! And thank you for the great integration 🙇

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

1 participant