Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adhorn/poliko
Demo web applications that use AWS Artificial Intelligence services Rekognition and Polly (http://poliko.adhorn.me)
https://github.com/adhorn/poliko
ai amazon-web-services artificial-intelligence aws cognito polly rekognition s3
Last synced: 5 days ago
JSON representation
Demo web applications that use AWS Artificial Intelligence services Rekognition and Polly (http://poliko.adhorn.me)
- Host: GitHub
- URL: https://github.com/adhorn/poliko
- Owner: adhorn
- Created: 2017-05-25T09:38:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-26T05:34:20.000Z (over 3 years ago)
- Last Synced: 2024-08-01T21:48:20.911Z (3 months ago)
- Topics: ai, amazon-web-services, artificial-intelligence, aws, cognito, polly, rekognition, s3
- Language: JavaScript
- Size: 33.2 KB
- Stars: 37
- Watchers: 9
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Code used for the demo http://poliko.adhorn.me
![Poliko in action](https://pbs.twimg.com/media/DAgoPnHXkAAbJZF.jpg:large)
This code uses Cognito to permit access to AI services (Rekognition and Polly)
**What is Amazon Cognito?**
Amazon Cognito lets you easily add user sign-up and sign-in to your mobile and web apps. With Amazon Cognito, you also have the options to authenticate users through social identity providers such as Facebook, Twitter, or Amazon, with SAML identity solutions, or by using your own identity system. In addition, Amazon Cognito enables you to save data locally on users devices, allowing your applications to work even when the devices are offline. You can then synchronize data across users devices so that their app experience remains consistent regardless of the device they use.**What is Amazon Rekognition?**
Amazon Rekognition is a service that makes it easy to add image analysis to your applications. With Rekognition, you can detect objects, scenes, faces; search and compare faces; and identify inappropriate content in images. Rekognition’s API enables you to quickly add sophisticated deep learning-based visual search and image classification to your applications.**What is Amazon Polly?**
Amazon Polly is a service that turns text into lifelike speech. Amazon Polly lets you create applications that talk, enabling you to build entirely new categories of speech-enabled products. Amazon Polly is an Amazon AI service that uses advanced deep learning technologies to synthesize speech that sounds like a human voice. Amazon Polly includes dozens of lifelike voices across a variety of languages, so you can select the ideal voice and build speech-enabled applications that work in many different countries.**DISCLAIMER**
The instruction assume you are comfortable using the AWS command line interface (CLI)
The AWS CLI is an open source tool built on top of the AWS SDK for Python (Boto) that provides commands for interacting with AWS services. With minimal configuration, you can start using all of the functionality provided by the AWS Management Console from your favorite terminal program.
• Linux shells – Use common shell programs such as Bash, Zsh, and tsch to run commands in Linux, macOS, or Unix.
• Windows command line – On Microsoft Windows, run commands in either PowerShell or the Windows Command Processor.
• Remotely – Run commands on Amazon EC2 instances through a remote terminal such as PuTTY or SSH, or with Amazon EC2 systems manager.The AWS CLI provides direct access to AWS services' public APIs. Explore a service's capabilities with the AWS CLI, and develop shell scripts to manage your resources. Or take what you've learned to develop programs in other languages with the AWS SDK.
You can install and configure the AWS CLI as explained here:
http://docs.aws.amazon.com/cli/latest/userguide/installing.html**How to Setup the demo?**
Read this page is you want to use Route53 and a shorter domain name for your demo.
http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.htmlEdit the bucket name you want to use in the file `setup_website.sh`
Run the configuration scripts.
The following will create a cognito federated identity pool allowing for unauthenticated access and update the `ai.js` file with the cognitio ID created.```
sh setup_cognito.sh
```This will setup an S3 bucket, turn it into a website and give it the correct policy.
```
sh setup_website.sh
```Browse to the URL outputed by the script.
Happy demo!