Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple application demonstrating the power of combining Tropo, Redis, Node.js and jQuery.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 readme.md
Octocat-spinner-32 redis-tropo.php
Octocat-spinner-32 speech.html
Octocat-spinner-32 speech.js
readme.md

Overview

A simple application demonstrating the power of combining Tropo, Redis, Node.js and jQuery.

Usage

You'll need to following to run this example:

  • A Tropo account (Create one for free or login at Tropo.com.
  • An instance of Redis that external sources can connect to - Redis to Go is a good way to get this piece.
  • A server running Node.js - this example was tested with v0.4.3.
  • A web server to serve the file socket.html (the HTML + jQuery page in this solution).

You will need to modify the files "redis-tropo.php" and "speech.js" to add the settings for your Redis instance. Create a new Tropo Scripting application and use the "redis-tropo.php" file as the source file for the application. Launch the file "speech.js" using Node.js (by default, this server will listen on localhost port 9000, change this if needed):

node path/to/speech.js

If you are not running your speech.js server on localhost at port 9000, you will need to modify the file "speech.html" to point to your socket.io instance. Once your speech.js server is running, load the speech.html page in your web browser.

You should now be able to call into your Tropo application (via the Skype number auto provisioned for your app, or by adding a phone number). When you enter text into the web form in the speech.html file, and click "Make Tropo say this" you should hear the text spoken aloud through your phone

Feedback

Feedback is appreciated. Send to mheadd [at] voxeo [dot] com.

Something went wrong with that request. Please try again.