From: riqo Date: Wed, 3 Feb 2021 15:01:02 +0000 (-0600) Subject: clean up src directory X-Git-Tag: v0.9~109 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=7ea09b99f03af53a9dc9becf1dc2aefd541f181e;p=mime-chat clean up src directory --- 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 });