]> Repos - mime-chat/commitdiff
clean up src directory
authorriqo <hernandeze2@xavier.edu>
Wed, 3 Feb 2021 15:01:02 +0000 (09:01 -0600)
committerriqo <hernandeze2@xavier.edu>
Wed, 3 Feb 2021 15:01:02 +0000 (09:01 -0600)
src/background.ts
src/store/index.ts [deleted file]
testAudio.js

index 27952c6c5aeaf4ed91158f34491499af4b87170d..b8f649dfaf09efc3353efa15e902b3d3c8b073a0 100644 (file)
@@ -10,7 +10,6 @@ import WebSocket from "ws";
 const portAudio = require('naudiodon');
 const speech = require('@google-cloud/speech');
 
-
 const client = new speech.SpeechClient();
 
 const encoding = 'LINEAR16';
diff --git a/src/store/index.ts b/src/store/index.ts
deleted file mode 100644 (file)
index 5f05f19..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-import { createStore } from 'vuex'
-
-export default createStore({
-  state: {
-  },
-  mutations: {
-  },
-  actions: {
-  },
-  modules: {
-  }
-})
index cbce101f5b5ca1de3f1310c5f3f7d032aeafb637..6a92222b6dc4515ecaf7e7afcf5700d10de93e3a 100644 (file)
@@ -13,7 +13,7 @@ const {Writable} = require('stream');
 const ws = new WebSocket("ws://localhost:8080");
 //const duplex = WebSocket.createWebSocketStream(ws, { encoding: 'binary' });
 
-let audioChunks = [];
+const audioChunks = [];
 const audioInputStreamTransform = new Writable({
   write(chunk, encoding, next) {
     console.log(chunk)
@@ -98,7 +98,7 @@ const audioOptions = {
   closeOnError: false // Close the stream if an audio error is detected, if set false then just log the error
 }
 
-let audioData = [];
+const audioData = [];
 const ai = new portAudio.AudioIO({
   inOptions: audioOptions
 });