Commit 3e171539 authored by Tom Jorquera's avatar Tom Jorquera
Browse files

client: placeholder version of live recommendation

parent 0b37d60f
......@@ -5,6 +5,7 @@
/* global robot:true robotController robotLib MediaRecorder */
/* exported robot */
const room = arguments[0];
const config = arguments[1];
robotController.external.load(config);
......@@ -21,6 +22,7 @@ robot = {
},
start: () => {
robotLib.stt = robotLib.stt(config);
robotLib.reco = robotLib.reco(config);
robotLib.archive = robotLib.archive(config);
robotController.onAttendeePush = (e, data) => {
......@@ -28,5 +30,10 @@ robot = {
const ws = robotLib.stt.getTranscriptSocket(e => console.log('> ' + e.text));
robot.processAudio(stream, e => ws.send(e.data), 100);
};
robotLib.reco.start(room);
setInterval(
robotLib.reco.getOnlineReco(room).then(console.log),
8000);
}
};
......@@ -33,6 +33,10 @@ describe('client/robot', () => {
}
})
}),
reco: () => ({
start: () => {},
getOnlineReco: () => new Promise(() => {}, () => {})
}),
archive: () => ({})
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment