tomharrigan / voicewp Goto Github PK
View Code? Open in Web Editor NEWCreate Alexa Skills through WordPress
Home Page: https://voicewp.com/
License: MIT License
Create Alexa Skills through WordPress
Home Page: https://voicewp.com/
License: MIT License
Custom meta data fields need to be as descriptive as possible.
Example: For inputting the amazon App ID, the description here should detail where and how to get this, and link out to docs with screenshots
When outputting sample utterances and the enhancements from #3, we need to link to documentation with screenshots on how to set this up in the amazon interface
A news organization might be used to writing abbreviations for the web that don't make sense when spoken.
For example, "DOT" in a news story should probably be spoken as "Department of Transportation," not "dot."
It would be nice to provide an interface that allows sites to list words or phrases that shouldn't be read as-is and to specify how those should be replaced.
The plugin might also be able to provide some starter replacements, like "in the morning" for "a.m.", although these should be removable if provided.
I already have my SSL installed. When I use Plugins>Add New>Upload Plugin > then choose the voicewp-master.zip, the site returns an HTTP 500 ERROR. I am using AWS Lightsail with the $10 a month instance 1 GB Memory 1 Core Processor 30 GB SSD Disk 2 TB Transfer. Any thoughts on the matter?
Hi,
I've been trying to connect my Wordpress Website to an Alexa skill for several days now via Voicewp. I followed the tutorial, however, the skill cannot be called. When testing on the Amazon Developer Portal, I get the message "The remote endpoint could not be called, or the response it returned was invalid.". When trying to call the skill using Amazon Echo, I get an answer about failing, the Alexa app tells the SSL handshake failed.
In the Amazon Developer Portal, I use the URL (via HTTPS) "https://mydomain.000webhostapp.com/wp-json/voicewp/v1/skill/news". When I open my URL in the browser, a simple text saying "To test your skill, use an Alexa enabled device or Echosim.io" is shown. There is no route error.
In the Alexa Skill Settings within the Wordpress Dashboard, the right News Skill ID is given. An SSL certificate is available.
What do I do wrong about the endpoint? Is there something important I missed when doing the tutorial?
Thank you for any answer!
https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/reference/audioplayer
https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/custom-audioplayer-interface-reference
https://developer.amazon.com/blogs/post/Tx1DSINBM8LUNHY/new-alexa-skills-kit-ask-feature-audio-streaming-in-alexa-skills
-Add a taxonomy to briefings, allowing a briefing post to be categorized
-Create a feed URL for each taxonomy, so each feed serves that content, allowing for a briefing to serve multiple different feeds which users can subscribe/activate/deactivate as desired
Meta fields should be added via FM to allow an audio file to be attached to the post type. Should probably include both a media upload field and a URL field. (only one would be used)
I installed the plugin because of the news skill. Do I need to config this skill or does it work out-of-the-box? I'm asking because I get an 404 error in json: {"code":"rest_no_route","message":"Keine Route für URL und Request-Methode gefunden","data":{"status":404}}
https://www.tsv-bodnegg.de/wp-json/alexawp/v1/skill/news
Example:
Post Title
Read All About It
Post Content
<amazon:effect name="whispered"> Here it is. </amazon:effect>
Once the certificate is cached, requests can pass validation even if they shouldn't.
Probable solution: cache key should be an MD5 of all relevant parameters, not just the URL
Instead of having to ask for a list of latest posts, 'alexa, ask {my skill} for the latest posts', and then select an item from the list, allow a user to say 'alexa, ask {my skill} to read me the latest post', and other variations on that. This will cut down the time it takes to get to actual content. Probably most useful for blogs rather than larger publications.
Can you add support to other languages ? Because I want to create a skill in german language
Can I translate the plugin with poedit ? Or what do I have to do in order to get a German skill
Rather than saying endpoint doesn't exist, give a message describing why they can't directly access the content so a user doesn't think the plugin isn't working
Introduce new functionality to news skill to allow selection of content via category, such as Alexa, ask 'news_skill_invocation_name' for Technology content
Requires tweaking of the query to allow for a cat param
Implement GA's server-side Measurement Protocol to handle sending custom events to GA based on firing certain intents
It's probably worth trying to support PHP 5.3 and using the standard array syntax rather than using shorthand array syntax.
For uploading image assets for use in repo documentation. Avoids including images in the repo.
Managed to commit a hard coded value that should have been replaced. It comes up in app card titles
If a URL intended to be oEmbedded is in the content of a post being read, the URL is spelled out.
In addition to the properties of a Simple card, Standard card allows for images, and should extend the existing card class.
For most users with a vanilla setup, serving of assets will probably be blocked due to CORS settings. Use the allowed_http_origins
filter to add http://ask-ifr-download.s3.amazonaws.com
to the list.
Note: Sites should use a CDN to serve up the images, but we should handle this case. Since it's just a filter, it can be removed if a site wishes.
Currently the News skill can output basic utterances. Intents and custom slots need to be included with this as well
Check if FM is active when activating the plugin and produce an admin notice if not.
By default, add to Post post_type, add filter to allow to be added to additional post types. Relates to #13
-Getting latest posts or posts by category should contain a numeric list of post titles in the app card
-Content cards should contain excerpt
Pretty strong case made here: https://hackernoon.com/if-you-want-a-winning-voice-app-implement-ssml-87fb43eec809#.mhhvmcmkz
We can start with not stripping P tags from the markup when stripping other HTML, and go from there as makes sense
To help sites test their skills more easily create a debug mode that allows the following:
-Disable verification steps (cert validation, timestamp validation etc)
-Disables caching so result testing can be done more quickly
-A toggle and filter for enabling and disabling debug mode
-A banner that appears when debug mode is enabled
Utterances included in v0.1 are extremely basic
Extend the card class to handle Standard image card (can contain image)
Won't exist for older WP versions, but may exist as a plugin for them. If we leverage any 4.7 endpoints, we may need additional checks there and then register custom endpoints if the site doesn't have them. Also, VIP sites don't have the WP REST API active by default, though it can be enabled.
I tried to setup voicewp according to the documentation, but the Alexa Dev Console responds with different errors.
There seems to be an issue with the interaction module and when entering my https URL it resonds with Error: The information sent is out of date, please refresh and try again."
Can you guys help?
Would it be possible to add functionality to allow the plugin to read the contents of a particular page rather than a post?
Hey guys,
When I upload MP3s the Alexa service doesn't seem to recognise it at all. Any ideas? This is for flash news briefing.
In alexawp.php, a new IntentRequest is instantiated within alexawp_news_request(), this should not always be an IntentRequest. Causes lots of errors in the log
Check that chosen item is valid. If 5 items are returned, and the user says read the 6th article, it will error.
Issue: If post content is longer than 8k chars, it will cut off the remainder and abruptly end the response. This affects the News functionality for sufficiently long content.
Output speech has a max length of 8000 chars.
Total response cannot be greater than 24kb
Possible solutions:
If post is greater than 8000 chars: split post content into an array where each key contains the first n paragraphs that are less than or equal to 8k chars. Store the remaining post contents as attributes and prompt the user after finishing the first block of content for whether they want to continue or not, and then deliver the next block of content.
The problem with this approach is that it's still possible for issue to occur if the total size of the article content along with the rest of the response is greater than 24kb.
If post is greater than 8000 chars: split post content into an array where each key contains the first n paragraphs that are less than or equal to 8k chars. Store the remaining post contents in cache using the transients API. Store a user attribute of the current array index, and an attribute for the number of keys in the index. If the index is not the last item of the array, prompt the user for if they want to continue once they reach the end of the block, and grab the next block from cache.
Settings screen should allow configuration options such as (but not limited to):
-selecting which public post types are made available for consumption via the news functionality
-selecting which category (or other taxonomy) terms are made available for consumption via news functionality
Utterances, intents, slot types should be updated appropriately. Ex.:
-Alexa, ask skill_name
for Technology (tax_term)
content
-Alexa, ask skill_name
for Gallery (post_type)
content
Allow the default home URL link to be overridden with a custom link in the redirectionUrl
field of the JSON output.
Todo:
-Add editable URL field on briefing post type
-When generating output, check for existence of a URL in this field, if exists, output; otherwise output home url of the site.
That's gonna be a no-go for WPVIP review
I love the plugin, but I was rejected for publishing because "The skill’s Home cards are not appropriate to the context of the skill’s functionality as defined in its description." Is there any way to change the card type from Standard to Simple?
The main Alexa Skill Settings page can be a bit overwhelming, with all of the settings being displayed in one lengthy page. Should discuss how to create a better UI.
Add Trivia as a skill type within custom skills
I noticed the use of []
for an array()
. Considering that syntax will break in lower versions of PHP, it's worth mentioning as part of the requirements. Also, since you're using the REST API would make sense to add an initial WP/plugin version as well to the requirements. These are both very minor yet useful for those new to the project.
Currently, the News functionality and the creation of facts/quotes skill types would create separate skills. We should allow both to exist under a single skill, rather than creating multiple small single serving skills.
Note: This should be optional and allow a site owner/editor to choose whether new functionality will exist within the current skill or as a new skill
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.