UNPKG

keolis-services

Version:

Keolis services includes Microphone, Location, Voice Activity Detector, Heart rate through web bluetooth API, text to speech, stop watch with our own cloud.

31 lines (25 loc) 860 B
const jsdom = require("jsdom").jsdom; global.latitude = ""; global.longitude = ""; global.currentSpeed = 0; global.mediaRecorder; global.uncertaintyDetected = 0; global.isRecording = false; global.isTalking = false; global.isUploading = false; global.PassiveModeOn = false; //webkitURL is deprecated but nevertheless URL = window.URL || window.webkitURL; global.gumStream; //stream from getUserMedia() global.rec; //Recorder.js object global.input; //MediaStreamAudioSourceNode we'll be recording // shim for AudioContext when it's not avb. global.AudioContext = window.AudioContext || window.webkitAudioContext; global.audioContext //audio context to help us record // For APIs global.redirect_uri = "" //local global.clientId = ""; global.secretKey = ""; global.apiKey = ""; global.apiSecret = ""; global.tenantName = "";