clean up src directory

This commit is contained in:
riqo 2021-02-03 09:01:02 -06:00
commit 7ea09b99f0
3 changed files with 2 additions and 15 deletions

View 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';

View file

@ -1,12 +0,0 @@
import { createStore } from 'vuex'
export default createStore({
state: {
},
mutations: {
},
actions: {
},
modules: {
}
})

View 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
});