feat: 正式增加语音模式支持

This commit is contained in:
ikechan8370 2023-03-04 22:06:09 +08:00
parent 41ca23dc85
commit 5ddeebfcc0
6 changed files with 124 additions and 25 deletions

View file

@ -1,12 +1,13 @@
import fs from 'fs'
import lodash from 'lodash'
import { execSync } from 'child_process'
const defaultConfig = {
blockWords: ['屏蔽词1', '屏蔽词b'],
promptBlockWords: ['屏蔽词1', '屏蔽词b'],
imgOcr: true,
defaultUsePicture: false,
defaultUseTTS: false,
defaultTTSRole: '纳西妲',
autoUsePicture: true,
autoUsePictureThreshold: 1200,
conversationPreserveTime: 0,
@ -43,7 +44,7 @@ const defaultConfig = {
noiseScale: 0.6,
noiseScaleW: 0.668,
lengthScale: 1.2,
version: 'v2.0.17'
version: 'v2.0.18'
}
const _path = process.cwd()
let config = {}