This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>VoxImplant Mic Activity Visualization Demo</title> | |
<script type="text/javascript" src="//cdn.voximplant.com/voximplant.min.js"></script> | |
</head> | |
<body> | |
<canvas id="mic_activity" width="30" height="150" style="border: solid 1px #ccc;"></canvas> | |
<script> | |
var vox = VoxImplant.getInstance(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://cdn.voximplant.com/voximplant.min.js"></script> | |
<script type="text/javascript"> | |
var initialized = false, | |
loggedIn = false, | |
connected = false, | |
voxAPI = VoxImplant.getInstance(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Blowfish.js from Dojo Toolkit 1.8.1 | |
* Cut of by Sladex ([email protected]) | |
* | |
* Usage: | |
* blowfish.encrypt(String 'subj to encrypt', String 'key', Object {outputType: 1, cipherMode: 0}); | |
* | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(Modules.Player); | |
require(Modules.Conference); | |
(function () { | |
var keys = [{ | |
username: "android", | |
password: "AC7IBG09A3DTSYM4R41UJWL07VLN8JI7", | |
deviceId: "android-generic", | |
decrypt: "R=U!LH$O2B#", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var inbound_call; | |
// Incoming call has arrived | |
VoxEngine.addEventListener(AppEvents.CallAlerting, function (event) { | |
inbound_call = event.call; | |
// Add event listener for connected event | |
inbound_call.addEventListener(CallEvents.Connected, function (callevent) { | |
// Make http request to external webserivce to get some data | |
Net.httpRequest("http://domain.com/getData/?" + encodeURIComponent(inbound_call.callerid()), handleDataReceived); | |
}); | |
inbound_call.addEventListener(CallEvents.Disconnected, VoxEngine.terminate); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var username; | |
VoxEngine.addEventListener(AppEvents.CallAlerting, function (e) { | |
username = e.callerid; | |
var call = VoxEngine.callConference("user_" + e.callerid, e.callerid, e.displayName, e.headers); | |
VoxEngine.easyProcess(e.call, call, function (c1, c2) { | |
e.call.sendMessage(JSON.stringify({ | |
event: "userconf_connected", | |
name: e.callerid | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Channel Conference | |
require(Modules.Conference); | |
require(Modules.Player); | |
var conf, | |
calls = []; | |
VoxEngine.addEventListener(AppEvents.Started, function(e) { | |
conf = VoxEngine.createConference(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// User Conference | |
require(Modules.Conference); | |
require(Modules.Player); | |
var conf, | |
user_call, | |
channel_calls = [], | |
caller_id, | |
display_name, | |
default_channel_ids; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(Modules.ASR); | |
require(Modules.Player); | |
var mycall, | |
myasr, | |
player, | |
ts, | |
ts2, | |
vad = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Without using Recording, it will transcribe both channels and create txt with the dialog | |
call.record({ | |
language: ASRLanguage.ENGLISH_US, | |
transcribe: true, | |
stereo: true | |
}); | |
// With Recorder module, use it if you need to transcribe only one participant of the call | |
require(Modules.ASR); | |
var recorder = VoxEngine.createRecorder({ |
OlderNewer