We'll create fresh WordPress site with WP Alexa Flash Briefing installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Alexa Flash Briefing Plugin for WordPress
This is a WordPress plugin that creates a new post type of “briefing” that lets you create Alexa Flash Briefing compatible posts just like you would anything else in WordPress. It uses these posts to create a feed for Alexa skills through the API.
Create your briefings like regular posts. Here’s how it works to determine a text to speech or audio file:
It is safest to just put a HTTPS url to your audio file, but you may add other text in the post if you are also sending people to your site to listen. WordPress will oembed the MP3 file you post, so users will be able to listen on the web.
Use this URL for your Alexa skill:
https://your-domain.com/wp-json/alexa-fb/v1/briefings/
That will post the latest briefing from all categories (1). To change the limit (be advised Amazon’s limit is 5), use:
/wp-json/alexa-fb/v1/briefings/?limit=5
If you want to create multiple feeds, use categories. Just add the category param to the end point:
/wp-json/alexa-fb/v1/briefings/?category=myflashbriefcat
This lets you use the same install for many feeds!
The feed API will cache in transients the result per category per limit for a default of 1 hour. To change the cache time or turn off caching per feed, use the cache param. 0 turns off caching for that feed, 1 for 1 hour (default), 3 for 3 hours, 0.5 for 30 mins, etc.
Just add the cache param to the end point:
/wp-json/alexa-fb/v1/briefings/?cache=0
All params can be used together.
(This plugin is not associated with Amazon in any way.)