Skip to content

Instantly share code, notes, and snippets.

View fjkattan's full-sized avatar

Francisco Kattan fjkattan

View GitHub Profile
[
{
"action": "talk",
"text": "Hello, you are listening to a call made using Voice API."
}
]
[
{
"action": "talk",
"text": "Welcome to Francisco's Conference Call. I hope you are having a nice day."
},
{
"action": "conversation",
"name": "francisco-conference-103"
}
]
//nothing here
[
{
"action": "talk",
"text": "Welcome to Francisco's Nexmo Conference Call."
},
{
"action": "conversation",
"name": "francisco-conference-99"
}
]
@fjkattan
fjkattan / Nexmo WebSocket Demo
Created November 18, 2016 22:50
Demonstrates a connection between a PSTN phone call and a WebSocket endpoint
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Audio Socket Visualisation</title>
<meta name="description" content="Nexmo Voice API over WebSocket Demo">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Alfa+Slab+One|Noto+Sans">
<link rel="stylesheet" href="https://opensource.keycdn.com/fontawesome/4.7.0/font-awesome.min.css" integrity="sha384-dNpIIXE8U05kAbPhy3G1cz+yZmTzA6CY8Vg/u2L9xRnHjJiAK76m2BIEaSEV+/aU" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
</head>
[
{
"action": "talk",
"voiceName" : "Geraint",
"text": "Hello My name is Geraint <speech><say-as interpret-as='digits'>123</say-as></speech>"
}
]