Skip to content

PubNub ChatEngine Demo with AWS Polly for Text-To-Speech buttons

Notifications You must be signed in to change notification settings

nishith-pubnub/chat-engine-polly-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PubNub ChatEngine Demo with AWS Polly for Text-To-Speech buttons

Instructions

  • Sign up for PubNub
  • Sign up for Amazon AWS
  • Run ChatEngine Setup
  • Get AWS access and secret keys for Polly guide here
  • Go to the PubNub Functions event handlers in the admin portal
  • Add an On Request event handler (+ tab) and paste polly-pfunc.js contents into the editor
  • To the left of the editor, click MY SECRETS and add AWS_access_key and AWS_access_key
  • Click COPY URL and paste it in app.js as pollyFunctionURI variable
  • Copy the Publish and Subscribe keys for the app from the admin portal
  • Paste them at the top of app.js
  • Install https://www.npmjs.com/package/http-server or something similar and boot a new server from the root folder of this project
  • http-server

Features

There is a Polly TTS button next to every chat bubble!

Uncomment under the UNCOMMENT lines in app.js to see ChatEngine features like

  • Chat History
  • Typing Indicator Plugin
  • Markdown Plugin

App Screenshot

About

PubNub ChatEngine Demo with AWS Polly for Text-To-Speech buttons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.4%
  • HTML 24.6%