Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asimihsan/codeword-alexa-skill
Generate code words using Alexa.
https://github.com/asimihsan/codeword-alexa-skill
Last synced: about 2 months ago
JSON representation
Generate code words using Alexa.
- Host: GitHub
- URL: https://github.com/asimihsan/codeword-alexa-skill
- Owner: asimihsan
- License: mit
- Created: 2016-02-20T22:59:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-21T02:05:58.000Z (almost 9 years ago)
- Last Synced: 2024-08-04T00:04:29.784Z (5 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# codeword-alexa-skill
Generate code words using Alexa.
## How to deploy
- Install nltk (`conda install nltk`), then run the NLTK downloader:
```
python -c 'import nltk; nltk.download()'
```- Install `averaged_perceptron_tagger`
Install the `wordnet` corpus.
- Run the following to generate the words database:```
cd codeword
./generate_lookup.py
```Then create a deployment ZIP file for lambda:
```
./create_lambda_deployment
```## How to set up Lambda
- Create a Lambda deployment ZIP file
- Create a new Lambda function
- Handler: "main.lambda_handler"
- Role: "lamda_basic_execution"
- Event source: "Alexa Skills Kit"
- You can test it with the following basic event:```
{
"session": {
"new": true,
"sessionId": "session1234",
"attributes": {},
"user": {
"userId": null
},
"application": {
"applicationId": "amzn1.echo-sdk-ams.app.[unique-value-here]"
}
},
"version": "1.0",
"request": {
"type": "LaunchRequest",
"requestId": "request5678"
}
}
```- Now go to https://developer.amazon.com/edw/home.html#/skills/list
- Create a new skill
- Name: "Code Phrase Generator"
- Invocation name: "for a code phrase"
- Version: "1.0"
- Endpoint: Lambda ARN
- The intent schema is:```
{
"intents": [
{
"intent": "GetCodePhrase"
}
]
}
```- Sample utterances:
```
GetCodePhrase for a code phrase
GetCodePhrase for a phrase
GetCodePhrase for a code
GetCodePhrase for a code word
GetCodePhrase for a codeword
```