From 7ea09b99f03af53a9dc9becf1dc2aefd541f181e Mon Sep 17 00:00:00 2001 From: riqo Date: Wed, 3 Feb 2021 09:01:02 -0600 Subject: [PATCH] clean up src directory --- src/background.ts | 1 - src/store/index.ts | 12 ------------ testAudio.js | 4 ++-- 3 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 src/store/index.ts diff --git a/src/background.ts b/src/background.ts index 27952c6..b8f649d 100644 --- a/src/background.ts +++ b/src/background.ts @@ -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 index 5f05f19..0000000 --- a/src/store/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { createStore } from 'vuex' - -export default createStore({ - state: { - }, - mutations: { - }, - actions: { - }, - modules: { - } -}) diff --git a/testAudio.js b/testAudio.js index cbce101..6a92222 100644 --- a/testAudio.js +++ b/testAudio.js @@ -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 }); -- 2.43.0