Added Support for Multiple Languages
This commit is contained in:
parent
9f6adb3a29
commit
36411bb2c5
|
@ -23,14 +23,13 @@ class WebSocket {
|
|||
})
|
||||
|
||||
this.io.on('connect', (data) => {
|
||||
this.io.emit("join", "Hi There NodeJS!");
|
||||
console.log("Connected to NodeJS Server");
|
||||
cb();
|
||||
});
|
||||
}
|
||||
/**
|
||||
* This Class Grabs the Audio from the User.
|
||||
* Line 26 needs to be replaced with the global variable for localstream found in Rails TODO: Put line
|
||||
* Line 48 needs to be replaced with the global variable for localstream found in Rails TODO: Put line
|
||||
*
|
||||
* DEPRECAION WARNING. This method makes vital use of createScriptProcessor which will be scrapped at some point
|
||||
* in the future. TODO: Switch from createScriptProcessor to AudioWorklet (No documentation as of 2018-08-30)
|
||||
|
@ -38,7 +37,7 @@ class WebSocket {
|
|||
* @async
|
||||
*/
|
||||
async grabAudio() {
|
||||
this.io.emit('startRecognition', "en-US");
|
||||
this.io.emit('startRecognition', "en-US", "fr");
|
||||
|
||||
AudioContext = window.AudioContext || window.webkitAudioContext;
|
||||
const ctx = new AudioContext();
|
||||
|
|
Reference in New Issue