Writing Voice Mashups with Amazon Turks

75 %
25 %
Information about Writing Voice Mashups with Amazon Turks

Published on April 18, 2007

Author: howethomas

Source: slideshare.net

Description

A few short years ago, communications applications required millions of dollars, teams of highly skilled engineers, access to networks, and many months of time. Telephony Mashups rewrite that equation, and make it possible to blend communications services into applications quickly and easily.

In this workshop, led by 2007 O'Reilly Mashup Winner Thomas Howe, we look at how these mashups are created, and at the implementation details in depth. Using After Hours Doctor's Office as an example, every part of the mashup will be reviewed in code-level detail, including a Voice XML front end, the software interfaces to the Amazon Mechanical Turk nurses, and mapping displays to help direct the patient to a local health care facility. The attendees will leave with a good understanding of the technology and effort required to write their own compelling application.

Writing Voice Mashups Thomas Howe - http://www.thomashowe.com

Agenda Introduce the After Hours Doctor’s Office Scenario The goals of the Mashup Introduce the architecture Go over every component Functionality, interface, code Give you some ingredients, ideas What this isn’t A complete, and coherent, application Utterly scalable, but surprisingly close What is this? Think of Lewis and Clark Today’s telephony is very far from this. Very far. With a bit of luck, this is tomorrow’s telephony

Introduce the After Hours Doctor’s Office

Scenario

The goals of the Mashup

Introduce the architecture

Go over every component

Functionality, interface, code

Give you some ingredients, ideas

What this isn’t

A complete, and coherent, application

Utterly scalable, but surprisingly close

What is this?

Think of Lewis and Clark

Today’s telephony is very far from this. Very far.

With a bit of luck, this is tomorrow’s telephony

After Hours Doctor’s Office Mashup written specifically for the Contest I quit my job because I was technically bothered Goals Show you the money Explore the use of Amazon Turks in Telephony Mashups Demonstrate the effects of modern Web technologies in telephony applications Resources Me, 40 hours and a PowerMac G5 Server TellMe Studio - Voice XML hosting Strike-Iron - SMS Messaging Amazon Web Services - Amazon Mechanical Turks Web Hosting Provider - PHP and Ruby on Rails Source and commentary available at thomashowe.com

Mashup written specifically for the Contest

I quit my job because I was technically bothered

Goals

Show you the money

Explore the use of Amazon Turks in Telephony Mashups

Demonstrate the effects of modern Web technologies in telephony applications

Resources

Me, 40 hours and a PowerMac G5 Server

TellMe Studio - Voice XML hosting

Strike-Iron - SMS Messaging

Amazon Web Services - Amazon Mechanical Turks

Web Hosting Provider - PHP and Ruby on Rails

Source and commentary available at thomashowe.com

Application Scenario Mr. Kraus feels sick, calls Dr. McCarthy After hours - no one’s there. Decision to make - emergency room? Tomorrow? Application takes voice mail message Forwards into pool of Amazon Turk Nurses SMS messages increase reaction time for small service Immediately responds to patient - constant feedback Turk Nurse determines urgency Listens to the message, summarizes and forwards Application gives direction to patient Routine? A message from nurse reassuring patient Urgent? A call from the Doctor, right away Benefits? Faster, cheaper with a higher quality of care

Mr. Kraus feels sick, calls Dr. McCarthy

After hours - no one’s there.

Decision to make - emergency room? Tomorrow?

Application takes voice mail message

Forwards into pool of Amazon Turk Nurses

SMS messages increase reaction time for small service

Immediately responds to patient - constant feedback

Turk Nurse determines urgency

Listens to the message, summarizes and forwards

Application gives direction to patient

Routine? A message from nurse reassuring patient

Urgent? A call from the Doctor, right away

Benefits?

Faster, cheaper with a higher quality of care

The Money Where is the money? 50 million unnecessary emergency room visits in the US Each costs about $900.00 more than a doctor’s office visit Where isn’t the money? Customer education that the service exists Repeated marketing to habituate the service Costly market trials Why? Integration of real time communications into the business process makes it more efficient, saving money for the enterprise and increasing customer satisfaction

Where is the money?

50 million unnecessary emergency room visits in the US

Each costs about $900.00 more than a doctor’s office visit

Where isn’t the money?

Customer education that the service exists

Repeated marketing to habituate the service

Costly market trials

Why?

Integration of real time communications into the business process makes it more efficient, saving money for the enterprise and increasing customer satisfaction

Amazon Turks Internet Scale Workforce One doctor needs 1/10 of a nurse One thousand doctors needs 100. More use, more turks, faster service Practical? Absolutely Nurses get $3.00 for three minutes work == $60/hour Down time, family time, sick time, whatever Off-shoring? Comprehensive Quality Amazon Turks automatically Record urgency accuracy, compare history Transcriptions

Internet Scale Workforce

One doctor needs 1/10 of a nurse

One thousand doctors needs 100.

More use, more turks, faster service

Practical? Absolutely

Nurses get $3.00 for three minutes work == $60/hour

Down time, family time, sick time, whatever

Off-shoring?

Comprehensive Quality

Amazon Turks automatically

Record urgency accuracy, compare history

Transcriptions

Bringing a knife to a gun fight… What did I use? 40 hours, web services and a rapidly aging geek Ruby on Rails, SOA, PHP $25.00 to Strike Iron, and I’d probably have to pay x cents a minute to TellMe, Angel, or Voxeo What did I not use? Big Iron ==> NO LARGE INVESTMENT A Contract ==> NO CARRIER INVOLVEMENT Marketing ==> NO CUSTOMER EDUCATION Risk ==> NO LONG DEVELOPMENT CYCLES Traditional carriers will get their clocks cleaned.

What did I use?

40 hours, web services and a rapidly aging geek

Ruby on Rails, SOA, PHP

$25.00 to Strike Iron, and I’d probably have to pay x cents a minute to TellMe, Angel, or Voxeo

What did I not use?

Big Iron ==> NO LARGE INVESTMENT

A Contract ==> NO CARRIER INVOLVEMENT

Marketing ==> NO CUSTOMER EDUCATION

Risk ==> NO LONG DEVELOPMENT CYCLES

Traditional carriers will get their clocks cleaned.

After Hours Mashup Architecture

VoiceXML Accepts inbound phone calls with rich media experience Voice detection, ASR, IVR, recording audio Use CCXML from Voxeo for outdial operations May be blended with other voice applications Standards Compliant Operation I can choose among hosted options, local platform Little lock in Records audio and posts it to Web Server Store it, record it, play it Web Server can produce VoiceXML files to play Stateful processing Many choices for hosted providers TellMe, Voxeo Some have platform/hosted options

Accepts inbound phone calls with rich media experience

Voice detection, ASR, IVR, recording audio

Use CCXML from Voxeo for outdial operations

May be blended with other voice applications

Standards Compliant Operation

I can choose among hosted options, local platform

Little lock in

Records audio and posts it to Web Server

Store it, record it, play it

Web Server can produce VoiceXML files to play

Stateful processing

Many choices for hosted providers

TellMe, Voxeo

Some have platform/hosted options

After Hours Mashup Architecture

Uploader.php PHP file for accepting inbound request Called by VoiceXML file Handles uploading voice files, data Calls shell scripts to issue SMS requests Returns VoiceXML files back Could be dynamic; template procesing Complete integration with other Web Tech Database integration Instant Messaging and Presence Information

PHP file for accepting inbound request

Called by VoiceXML file

Handles uploading voice files, data

Calls shell scripts to issue SMS requests

Returns VoiceXML files back

Could be dynamic; template procesing

Complete integration with other Web Tech

Database integration

Instant Messaging and Presence Information

After Hours Mashup Architecture

Strike Iron SMS Web Service to send text messages One of many online, paid services Reverse phone number lookup Address verification, currency rate, background check Pay per click model First 100 clicks are free, small fee thereafter 168 characters per message User interface issues URL issues (TinyURL) Extraordinarily Powerful Ubiquitous Immediate

Web Service to send text messages

One of many online, paid services

Reverse phone number lookup

Address verification, currency rate, background check

Pay per click model

First 100 clicks are free, small fee thereafter

168 characters per message

User interface issues

URL issues (TinyURL)

Extraordinarily Powerful

Ubiquitous

Immediate

After Hours Mashup Architecture

Amazon Web Services Amazon Mechanical Turks Human Intelligence Tasks Things that humans can do easily, difficult for computers A9 Search Engine Artificial Artificial Intelligence It’s now OK to cheat Humans become subroutines S3, EC2 have unique telephony implications Mr. Erlang never worked for Amazon True defense against DDOS S3 == linear scalability == holy grail of telephony

Amazon Mechanical Turks

Human Intelligence Tasks

Things that humans can do easily, difficult for computers

A9 Search Engine

Artificial Artificial Intelligence

It’s now OK to cheat

Humans become subroutines

S3, EC2 have unique telephony implications

Mr. Erlang never worked for Amazon

True defense against DDOS

S3 == linear scalability == holy grail of telephony

After Hours Mashup Architecture

Extensions Call Centers Expert based call centers, makes response even faster Better for larger scale installations Integrates well with Amazon Turks Geolocation Give the data right to the nurse, showing hospitals, medical centers, etc. Combines well with text messages (text directions) Get location from reverse phone number lookup, zip code from VxML, GPS inside phone, or all of the above for fraud detection Medical Transcriptions to Testing Use medical transcriptions to check for consistency, accuracy, training.

Call Centers

Expert based call centers, makes response even faster

Better for larger scale installations

Integrates well with Amazon Turks

Geolocation

Give the data right to the nurse, showing hospitals, medical centers, etc.

Combines well with text messages (text directions)

Get location from reverse phone number lookup, zip code from VxML, GPS inside phone, or all of the above for fraud detection

Medical Transcriptions to Testing

Use medical transcriptions to check for consistency, accuracy, training.

Call Center : Sylantro Integrating with Sylantro switch Accepts inbound calls into expert queue Nurses login to the system from soft client or PSTN phone Turks are used to manage larger schedules Even better response for patient Nurse is right there to answer questions Use VoiceXML to do pre-processing, skills based routing SOAP based interface using Java Better choice for larger setups Dedicated equipment, staff Other functionality Conferencing in Doctor or other expert Past history integration with CRM for accuracy Click to dial for post care support through e-mail

Integrating with Sylantro switch

Accepts inbound calls into expert queue

Nurses login to the system from soft client or PSTN phone

Turks are used to manage larger schedules

Even better response for patient

Nurse is right there to answer questions

Use VoiceXML to do pre-processing, skills based routing

SOAP based interface using Java

Better choice for larger setups

Dedicated equipment, staff

Other functionality

Conferencing in Doctor or other expert

Past history integration with CRM for accuracy

Click to dial for post care support through e-mail

Yahoo! Local Nurses page shows location of caller Location derived from inbound calling info Alternatives are GPS, asked Gives nurse immediate information to share with patient Nearest clinic, hospital, etc. Directions; call ahead; 911 conference Flash based API Many APIs available… this was wicked simple to use

Nurses page shows location of caller

Location derived from inbound calling info

Alternatives are GPS, asked

Gives nurse immediate information to share with patient

Nearest clinic, hospital, etc.

Directions; call ahead; 911 conference

Flash based API

Many APIs available… this was wicked simple to use

Thank you!!! For more information, source code, and this presentation, see my site at thomashowe.com

For more information, source code, and this presentation, see my site at

thomashowe.com

Add a comment

Related pages

Turks | LinkedIn

View 28629 Turks posts, presentations, experts, and more. Get the professional knowledge you need on LinkedIn. LinkedIn Home What is LinkedIn? Join Today
Read more

Music MashUp Charts

New MP3 Mashup Albums Compilation: Summer Booty 2015 Compilation: 80′s Mashed Vol. 3 Compilation: La Masheillaise IV Top10 Top30 Top50 Last30 Top 10 ...
Read more

Amazon's Mechanical Turk lets you make $$$, sort of - CNET

Amazon's Mechanical Turk lets you earn ... and 75 cents to record your screen and voice as ... I think I'll try one of the blog writing ...
Read more

Amazon S3 API - ProgrammableWeb - APIs, Mashups and the ...

Amazon S3 API, the Simple Storage ... API; Mashup; SDK; Rss; Facebook; Twitter; Google+; LinkedIn; search ... Voices Against Mandatory APIs in Healthcare.
Read more

ProgrammableWeb - APIs, Mashups and the Web as Platform

The leading source of news and information about APIs, ... When It Is Not a Good Time for APIs: Voices Against Mandatory ... API Directory; Mashups and ...
Read more

Pride and Prejudice and Zombies: The Classic Regency ...

Pride and Prejudice and Zombies: ... on Amazon.com. *FREE* shipping on ... if you admire only the most intricate writing and consider this sort of ...
Read more

Party Ben - Music Downloads

... "Snow Police" or "Every Car You Chase ... so now their voices ... Green Day "Boulevard of Broken Dreams," Oasis "Wonderwall," Travis "Writing ...
Read more

Amazon's Mechanical Turk workers protest: 'I am a human ...

Users of Amazon’s Mechanical Turk crowdworking marketplace have launched a Christmas ... The letter writing campaign is hosted on a collaborative ...
Read more