mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-03-13 19:34:02 +03:00
WIP: support so-vits-svc, client3
This commit is contained in:
parent
fe88ada373
commit
ef9f63b8df
@ -7,7 +7,7 @@
|
||||
export const ClientType = {
|
||||
"MMVCv15": "MMVCv15",
|
||||
"MMVCv13": "MMVCv13",
|
||||
"so-vits-svc": "so-vits-svc",
|
||||
"so_vits_svc_40v2c": "so_vits_svc_40v2c",
|
||||
} as const
|
||||
export type ClientType = typeof ClientType[keyof typeof ClientType]
|
||||
|
||||
@ -168,7 +168,7 @@ export const DefaultServerSetting_MMVCv13: ServerInfo = {
|
||||
onnxExecutionProviders: []
|
||||
}
|
||||
|
||||
export const DefaultServerSetting_so_vits_svc: ServerInfo = {
|
||||
export const DefaultServerSetting_so_vits_svc_40v2: ServerInfo = {
|
||||
srcId: 0,
|
||||
dstId: 0,
|
||||
gpu: 0,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { useState, useMemo, useEffect } from "react"
|
||||
import { VoiceChangerServerSetting, ServerInfo, ServerSettingKey, INDEXEDDB_KEY_SERVER, INDEXEDDB_KEY_MODEL_DATA, ClientType, DefaultServerSetting_MMVCv13, DefaultServerSetting_MMVCv15, DefaultServerSetting_so_vits_svc } from "../const"
|
||||
import { VoiceChangerServerSetting, ServerInfo, ServerSettingKey, INDEXEDDB_KEY_SERVER, INDEXEDDB_KEY_MODEL_DATA, ClientType, DefaultServerSetting_MMVCv13, DefaultServerSetting_MMVCv15, DefaultServerSetting_so_vits_svc_40v2 } from "../const"
|
||||
import { VoiceChangerClient } from "../VoiceChangerClient"
|
||||
import { useIndexedDB } from "./useIndexedDB"
|
||||
|
||||
@ -48,8 +48,8 @@ export const useServerSetting = (props: UseServerSettingProps): ServerSettingSta
|
||||
return DefaultServerSetting_MMVCv13
|
||||
} else if (props.clientType == "MMVCv15") {
|
||||
return DefaultServerSetting_MMVCv15
|
||||
} else if (props.clientType == "so-vits-svc") {
|
||||
return DefaultServerSetting_so_vits_svc
|
||||
} else if (props.clientType == "so_vits_svc_40v2c") {
|
||||
return DefaultServerSetting_so_vits_svc_40v2
|
||||
} else {
|
||||
return DefaultServerSetting_MMVCv15
|
||||
}
|
||||
|
4
client/so-vits-svc_40v2/dist/index.js
vendored
4
client/so-vits-svc_40v2/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
import { ClientType } from "@dannadori/voice-changer-client-js"
|
||||
|
||||
export const CLIENT_TYPE = ClientType.MMVCv13
|
||||
export const CLIENT_TYPE = ClientType.so_vits_svc_40v2c
|
||||
|
||||
export const AUDIO_ELEMENT_FOR_PLAY_RESULT = "audio-result"
|
||||
export const AUDIO_ELEMENT_FOR_TEST_ORIGINAL = "audio-test-original"
|
||||
|
Loading…
x
Reference in New Issue
Block a user