https://github.com/esimkowitz/pocket-reader
Read Pocket articles with Alexa
https://github.com/esimkowitz/pocket-reader
alexa amazon article javascript lambda natural-language-processing nodejs pocket voice
Last synced: about 2 months ago
JSON representation
Read Pocket articles with Alexa
- Host: GitHub
- URL: https://github.com/esimkowitz/pocket-reader
- Owner: esimkowitz
- License: apache-2.0
- Created: 2017-08-18T21:29:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T06:39:15.000Z (over 8 years ago)
- Last Synced: 2025-08-02T08:26:34.105Z (11 months ago)
- Topics: alexa, amazon, article, javascript, lambda, natural-language-processing, nodejs, pocket, voice
- Language: JavaScript
- Homepage:
- Size: 115 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Article Reader
_Read Pocket articles with Alexa_
## TODO
1. [x] Add blurb to beginning of each article to announce the title and author
1. [x] Reduce the delay with loading new article segments (maybe cache them in the background?)
1. [x] Figure out how long audio assets should be held onto before discarding
- Should they be deleted immediately after use?
- Should I try to incoorporate a smart caching scheme (probably not this one)?
1. [ ] Add support for lists and headers in the HTML parser, also authors.
1. [x] Implement a system to delete left-over Polly Queue table entries and audio assets when a playlist entry is deleted.
1. [ ] Add ability to queue unspecified number of articles
- i.e. play back all articles until told to stop
1. [x] Streamline the process for deleting old assets
- Maybe keep a list of currently-downloaded assets in the playlist object so fewer repeat queries need to be done
- Or combine all the audio asset objects into one list object with an index marker
1. [x] Streamline the cleanup phase so that old audio assets are reliably deleted
- Maybe keep track of when an asset was last played and delete it when it's been idle for too long
1. [ ] Try implementing an automated deploy pipeline for the skill by following [this tutorial](https://stelligent.com/2017/07/25/use-aws-codepipeline-to-deploy-amazon-alexa-skill/).
1. [x] Simplify the tracking of playlists, current index within an article, etc. by using the `this.attributes` object instead of a separate table.
1. [ ] Look at [bespoken.io](https://bespoken.io/) as an option for easier skill development
## FIXME
1. [x] Update `playNext` and `playPrevious` actions to play next/previous article, rather than next/previous audio asset.
1. [ ] Ensure that `playNext` and `playPrevious` set the curr_index back to zero
1. [ ] When more than one item is queued in the playlist, the numSlices attribute is sometimes copied from the first item
1. [ ] When only one item is queued to the playlist, sometimes a second ghost item is added with no attributes other than a copy of the first item's `numSlices`
1. [x] Figure out why the first audio asset is sometimes repeated at the start of an article's playback.
1. [ ] Something is preventing the articles from playing past the second `audioAsset`