1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-11 09:12:40 +03:00

Merge branch 'basic-cleanup' into develop

This commit is contained in:
louistiti 2021-03-02 17:07:02 +08:00
commit 89778e1921
11 changed files with 18 additions and 18 deletions

View File

@ -1,6 +1,6 @@
import log from '@/helpers/log'
import buildApp from './build-app';
import buildApp from './build-app'
/**
* Execute the building app script

View File

@ -36,11 +36,11 @@ export default () => new Promise(async (resolve, reject) => {
can_offline_stt: { title: 'Offline speech-to-text', type: 'warning', v: true }
}
log.title('Checking');
log.title('Checking')
// Environment checking
(await Promise.all([
;(await Promise.all([
shell('node --version'),
shell('npm --version'),
shell('pipenv --version')
@ -58,9 +58,9 @@ export default () => new Promise(async (resolve, reject) => {
} else {
log.success(`${p.stdout}\n`)
}
});
})
(await Promise.all([
;(await Promise.all([
shell('pipenv --where'),
shell('pipenv run python --version')
])).forEach((p) => {

View File

@ -1,7 +1,7 @@
import { shell } from 'execa'
import log from '@/helpers/log'
import loader from '@/helpers/loader';
import loader from '@/helpers/loader'
/**
* This script ensures the correct coding syntax of the whole project

View File

@ -2,10 +2,10 @@ import log from '@/helpers/log'
import loader from '@/helpers/loader'
import updateVersion from './update-version'
import generateChangelog from './generate-changelog';
import generateChangelog from './generate-changelog'
/**
* main entry of the release preparation
* Main entry of the release preparation
*/
(async () => {
loader.start()

View File

@ -1,6 +1,6 @@
import loader from '@/helpers/loader'
import check from './check';
import check from './check'
/**
* Execute the checking script

View File

@ -1,6 +1,6 @@
import log from '@/helpers/log'
import train from './train';
import train from './train'
/**
* Execute the training script

View File

@ -3,7 +3,7 @@ import log from '@/helpers/log'
import setupStt from './setup-stt';
/**
* execute the setup offline STT script
* Execute the setup offline STT script
*/
(async () => {
try {

View File

@ -8,7 +8,7 @@ import train from '../train'
import setupDotenv from './setup-dotenv'
import setupCore from './setup-core'
import setupPackagesConfig from './setup-packages-config'
import setupPythonPackages from './setup-python-packages';
import setupPythonPackages from './setup-python-packages'
// Do not load ".env" file because it is not created yet

View File

@ -104,9 +104,9 @@ class Synchronizer {
// TODO: UI toolbox to reach this scope
// Delete Drive files
/* setTimeout(() => {
drive.files.delete({ fileId: list.data.files[i].id });
log.title('Synchronizer'); log.success(`"${list.data.files[i].id}" deleted`);
}, 200 * i); */
drive.files.delete({ fileId: list.data.files[i].id })
log.title('Synchronizer'); log.success(`"${list.data.files[i].id}" deleted`)
}, 200 * i) */
}
return false
},

View File

@ -2,7 +2,7 @@
import dotenv from 'dotenv'
import Server from '@/core/server';
import Server from '@/core/server'
(async () => {
dotenv.config()

View File

@ -36,7 +36,7 @@ const BEAM_WIDTH = 500
// The alpha hyperparameter of the CTC decoder. Language Model weight
const LM_ALPHA = 0.75
// The beta hyperparameter of the CTC decoder. Word insertion weight (penalty)
// const WORD_COUNT_WEIGHT = 1.00;
// const WORD_COUNT_WEIGHT = 1.00
/**
* Valid word insertion weight
* This is used to lessen the word insertion penalty
@ -137,7 +137,7 @@ parser.parse = (buffer, cb) => {
return false
}
// const audioLength = (buffer.length / 2) * (1 / 16000);
// const audioLength = (buffer.length / 2) * (1 / 16000)
// We take half of the buffer_size because buffer is a char* while LocalDsSTT() expected a short*
/* istanbul ignore if */