clean up src directory
This commit is contained in:
parent
a5b6837623
commit
7ea09b99f0
3 changed files with 2 additions and 15 deletions
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
import { createStore } from 'vuex'
|
||||
|
||||
export default createStore({
|
||||
state: {
|
||||
},
|
||||
mutations: {
|
||||
},
|
||||
actions: {
|
||||
},
|
||||
modules: {
|
||||
}
|
||||
})
|
||||
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue