login svg
This commit is contained in:
parent
5e709daf79
commit
d8805b127e
5 changed files with 64 additions and 20 deletions
|
|
@ -1,7 +1,7 @@
|
|||
"use strict";
|
||||
import {initApp} from './background/initApp';
|
||||
import {Recorder} from './background/recorder';
|
||||
// const portAudio = require('naudiodon');
|
||||
const portAudio = require('naudiodon');
|
||||
|
||||
|
||||
// NOTE Program Begins Here
|
||||
|
|
@ -9,13 +9,13 @@ import {Recorder} from './background/recorder';
|
|||
|
||||
const isDevelopment = process.env.NODE_ENV !== "production";
|
||||
|
||||
// const recorder = new Recorder({
|
||||
// channelCount: 1,
|
||||
// sampleFormat: portAudio.SampleFormat16Bit,
|
||||
// sampleRate: 16000,
|
||||
// deviceId: -1, // Use -1 or omit the deviceId to select the default device
|
||||
// closeOnError: true
|
||||
// }, 'binary');
|
||||
const recorder = new Recorder({
|
||||
channelCount: 1,
|
||||
sampleFormat: portAudio.SampleFormat16Bit,
|
||||
sampleRate: 16000,
|
||||
deviceId: -1, // Use -1 or omit the deviceId to select the default device
|
||||
closeOnError: true
|
||||
}, 'binary');
|
||||
|
||||
try {
|
||||
// await authenticate method
|
||||
|
|
|
|||
Loading…
Reference in a new issue