-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.js
21 lines (19 loc) · 814 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import {getCookie} from "./scripts/helpers/cookies.js";
import {setUpEventHandlers} from "./scripts/event-handlers.js";
import {setupSocketConnectionWithAPI} from './scripts/caption-ninja.js';
import {setupWebkitSpeechRecognition} from './scripts/voice-recognition.js';
import {initAudioDevices} from "./scripts/audio-devices.js";
import {initializeAWS} from './scripts/aws.js';
import {initLocalWebsockets} from './scripts/local-websocket.js';
(async () => {
await initAudioDevices();
setUpEventHandlers();
setupSocketConnectionWithAPI();
setupWebkitSpeechRecognition();
initLocalWebsockets();
let awsRegion = getCookie("awsRegion");
let awsCredentials = getCookie("awsCredentials");
if (awsRegion && awsCredentials){
initializeAWS(awsRegion, awsCredentials);
}
})();