Add model selection for VitsModel

This commit is contained in:
kwaroran
2024-01-06 06:45:18 +09:00
parent 66c6511684
commit 7344e566f4
7 changed files with 366 additions and 220 deletions

View File

@@ -695,7 +695,8 @@ export interface character{
hfTTS?: {
model: string
language: string
}
},
vits?: OnnxModelFiles
}
@@ -1115,6 +1116,7 @@ export function setPreset(db:Database, newPres: botPreset){
import { encode as encodeMsgpack, decode as decodeMsgpack } from "msgpackr";
import * as fflate from "fflate";
import type { OnnxModelFiles } from '../process/embedding/transformers';
export async function downloadPreset(id:number){
saveCurrentPreset()