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

@ -5,6 +5,7 @@ import lodash from 'lodash'
import fs from 'node:fs'
import path from 'node:path'
import puppeteer from '../../../lib/puppeteer/puppeteer.js'
import {Config} from "./config.js";
// export function markdownToText (markdown) {
// return remark()
// .use(stripMarkdown)
@ -287,3 +288,11 @@ export async function render (e, pluginKey, htmlPath, data = {}, renderCfg = {})
}
return renderCfg.retType === 'msgId' ? ret : true
}
export function getDefaultUserSetting () {
return {
usePicture: Config.defaultUsePicture,
useTTS: Config.defaultUseTTS,
ttsRole: Config.defaultTTSRole
}
}