diff --git a/client/demo/dist/assets/gui_settings/MMVCv13.json b/client/demo/dist/assets/gui_settings/MMVCv13.json index 6c6f75f6..83585b9b 100644 --- a/client/demo/dist/assets/gui_settings/MMVCv13.json +++ b/client/demo/dist/assets/gui_settings/MMVCv13.json @@ -2,65 +2,158 @@ "type": "demo", "id": "MMVCv13", "front": { - "title": { - "mainTitle": "Realtime Voice Changer Client", - "subTitle": "for MMVC v.1.3", - "lineNum": 1 - }, - "serverControl": { - "modelInfoEnable": true - }, - "modelSetting": { - "ONNXEnable": true, - "pyTorchEnable": true, - "MMVCCorrespondense": false, - "pyTorchClusterEnable": false, - "showPyTorchDefault": false, - "frameworkEnable": true, - "modelUploaderEnable": true, - "configRow": true, - "uploadRow": true - }, - "deviceSetting": {}, - "qualityControl": { - "F0DetectorEnable": false, - "analyzerRow": true, - "samplingRow": true, - "playRow": true - }, - "speakerSetting": { - "srcIdEnable": true, - "dstIdEnable": true, - "editSpeakerIdMappingEnable": true, - "f0FactorEnable": false, - "tuningEnable": false, - "clusterInferRationEnable": false, - "noiseScaleEnable": false, - "silentThresholdEnable": false - }, - "converterSetting": { - "extraDataLengthEnable": false - }, - "advancedSetting": { - "serverURLEnable": true, - "protocolEnable": true, - "sampleRateEnable": true, - "sendingSampleRateEnable": true, - "crossFadeOverlapSizeEnable": true, - "crossFadeOffsetRateEnable": true, - "crossFadeEndRateEnable": true, - "downSamplingModeEnable": true, - "trancateNumTresholdEnable": true - } + "title": [ + { + "name": "title", + "options": { + "mainTitle": "Realtime Voice Changer Client", + "subTitle": "for MMVC v.1.3", + "lineNum": 1 + } + }, + { + "name": "clearSetting", + "options": {} + } + ], + "serverControl": [ + { + "name": "startButton", + "options": {} + }, + { + "name": "performance", + "options": {} + }, + { + "name": "serverInfo", + "options": {} + } + ], + "modelSetting": [ + { + "name": "modelUploader", + "options": { + "showConfig": true, + "showOnnx": true, + "showPyTorch": true, + "showCorrespondence": false, + "showPyTorchCluster": false, + + "defaultEnablePyTorch": false + } + }, + { + "name": "framework", + "options": { + "showFramework": true + } + } + ], + "deviceSetting": [ + { + "name": "audioInput", + "options": {} + }, + { + "name": "audioOutput", + "options": {} + } + ], + "qualityControl": [ + { + "name": "noiseControl", + "options": {} + }, + { + "name": "gainControl", + "options": {} + }, + { + "name": "divider", + "options": {} + }, + { + "name": "analyzer", + "options": {} + } + ], + "speakerSetting": [ + { + "name": "srcId", + "options": { + "showF0": false + } + }, + { + "name": "dstId", + "options": { + "showF0": false, + "useServerInfo": false + } + }, + { + "name": "editSpeakerIdMapping", + "options": {} + } + ], + "converterSetting": [ + { + "name": "inputChunkNum", + "options": {} + }, + { + "name": "gpu", + "options": {} + } + ], + "advancedSetting": [ + { + "name": "serverURL", + "options": {} + }, + { + "name": "protocol", + "options": {} + }, + { + "name": "sampleRate", + "options": {} + }, + { + "name": "sendingSampleRate", + "options": {} + }, + { + "name": "crossFadeOverlapSize", + "options": {} + }, + { + "name": "crossFadeOffsetRate", + "options": {} + }, + { + "name": "crossFadeEndRate", + "options": {} + }, + { + "name": "downSamplingMode", + "options": {} + }, + { + "name": "trancateNumThreshold", + "options": {} + } + ] }, "dialogs": { "license": [ { - "title": "c", - "auther": "c", - "contact": "b", - "url": "a", + "title": "MMVC", + "auther": "isletennos", + "contact": "", + "url": "https://github.com/isletennos/MMVC_Trainer", "license": "MIT" } ] diff --git a/client/demo/dist/assets/gui_settings/MMVCv15.json b/client/demo/dist/assets/gui_settings/MMVCv15.json index cb95312c..503c30c5 100644 --- a/client/demo/dist/assets/gui_settings/MMVCv15.json +++ b/client/demo/dist/assets/gui_settings/MMVCv15.json @@ -2,65 +2,162 @@ "type": "demo", "id": "MMVCv15", "front": { - "title": { - "mainTitle": "Realtime Voice Changer Client", - "subTitle": "for MMVC v.1.5", - "lineNum": 1 - }, - "serverControl": { - "modelInfoEnable": true - }, - "modelSetting": { - "ONNXEnable": true, - "pyTorchEnable": true, - "MMVCCorrespondense": true, - "pyTorchClusterEnable": false, - "showPyTorchDefault": false, - "frameworkEnable": true, - "modelUploaderEnable": true, - "configRow": true, - "uploadRow": true - }, - "deviceSetting": {}, - "qualityControl": { - "F0DetectorEnable": true, - "analyzerRow": true, - "samplingRow": true, - "playRow": true - }, - "speakerSetting": { - "srcIdEnable": true, - "dstIdEnable": true, - "editSpeakerIdMappingEnable": false, - "f0FactorEnable": true, - "tuningEnable": false, - "clusterInferRationEnable": false, - "noiseScaleEnable": false, - "silentThresholdEnable": false - }, - "converterSetting": { - "extraDataLengthEnable": false - }, - "advancedSetting": { - "serverURLEnable": true, - "protocolEnable": true, - "sampleRateEnable": true, - "sendingSampleRateEnable": true, - "crossFadeOverlapSizeEnable": true, - "crossFadeOffsetRateEnable": true, - "crossFadeEndRateEnable": true, - "downSamplingModeEnable": true, - "trancateNumTresholdEnable": true - } + "title": [ + { + "name": "title", + "options": { + "mainTitle": "Realtime Voice Changer Client", + "subTitle": "for MMVC v.1.5", + "lineNum": 1 + } + }, + { + "name": "clearSetting", + "options": {} + } + ], + "serverControl": [ + { + "name": "startButton", + "options": {} + }, + { + "name": "performance", + "options": {} + }, + { + "name": "serverInfo", + "options": {} + } + ], + "modelSetting": [ + { + "name": "modelUploader", + "options": { + "showConfig": true, + "showOnnx": true, + "showPyTorch": true, + "showCorrespondence": true, + "showPyTorchCluster": false, + + "defaultEnablePyTorch": false + } + }, + { + "name": "framework", + "options": { + "showFramework": true + } + } + ], + "deviceSetting": [ + { + "name": "audioInput", + "options": {} + }, + { + "name": "audioOutput", + "options": {} + } + ], + "qualityControl": [ + { + "name": "noiseControl", + "options": {} + }, + { + "name": "gainControl", + "options": {} + }, + { + "name": "f0Detector", + "options": {} + }, + { + "name": "divider", + "options": {} + }, + { + "name": "analyzer", + "options": {} + } + ], + "speakerSetting": [ + { + "name": "srcId", + "options": { + "showF0": true + } + }, + { + "name": "dstId", + "options": { + "showF0": true, + "useServerInfo": false + } + }, + { + "name": "f0Factor", + "options": {} + } + ], + "converterSetting": [ + { + "name": "inputChunkNum", + "options": {} + }, + { + "name": "gpu", + "options": {} + } + ], + "advancedSetting": [ + { + "name": "serverURL", + "options": {} + }, + { + "name": "protocol", + "options": {} + }, + { + "name": "sampleRate", + "options": {} + }, + { + "name": "sendingSampleRate", + "options": {} + }, + { + "name": "crossFadeOverlapSize", + "options": {} + }, + { + "name": "crossFadeOffsetRate", + "options": {} + }, + { + "name": "crossFadeEndRate", + "options": {} + }, + { + "name": "downSamplingMode", + "options": {} + }, + { + "name": "trancateNumThreshold", + "options": {} + } + ] }, "dialogs": { "license": [ { - "title": "c", - "auther": "c", - "contact": "b", - "url": "a", + "title": "MMVC", + "auther": "isletennos", + "contact": "", + "url": "https://github.com/isletennos/MMVC_Trainer", "license": "MIT" } ] diff --git a/client/demo/dist/assets/gui_settings/so-vits-svc-40.json b/client/demo/dist/assets/gui_settings/so-vits-svc-40.json index 0dcdf974..2d77e628 100644 --- a/client/demo/dist/assets/gui_settings/so-vits-svc-40.json +++ b/client/demo/dist/assets/gui_settings/so-vits-svc-40.json @@ -2,65 +2,172 @@ "type": "demo", "id": "so-vits-svc-40", "front": { - "title": { - "mainTitle": "Realtime Voice Changer Client", - "subTitle": "for so-vits-svc-40", - "lineNum": 1 - }, - "serverControl": { - "modelInfoEnable": true - }, - "modelSetting": { - "ONNXEnable": false, - "pyTorchEnable": true, - "MMVCCorrespondense": false, - "pyTorchClusterEnable": true, - "showPyTorchDefault": true, - "frameworkEnable": true, - "modelUploaderEnable": true, - "configRow": true, - "uploadRow": true - }, - "deviceSetting": {}, - "qualityControl": { - "F0DetectorEnable": true, - "analyzerRow": true, - "samplingRow": true, - "playRow": true - }, - "speakerSetting": { - "srcIdEnable": false, - "dstIdEnable": true, - "editSpeakerIdMappingEnable": false, - "f0FactorEnable": false, - "tuningEnable": true, - "clusterInferRationEnable": true, - "noiseScaleEnable": true, - "silentThresholdEnable": true - }, - "converterSetting": { - "extraDataLengthEnable": true - }, - "advancedSetting": { - "serverURLEnable": true, - "protocolEnable": true, - "sampleRateEnable": true, - "sendingSampleRateEnable": true, - "crossFadeOverlapSizeEnable": true, - "crossFadeOffsetRateEnable": true, - "crossFadeEndRateEnable": true, - "downSamplingModeEnable": true, - "trancateNumTresholdEnable": true - } + "title": [ + { + "name": "title", + "options": { + "mainTitle": "Realtime Voice Changer Client", + "subTitle": "for so-vits-svc-40", + "lineNum": 1 + } + }, + { + "name": "clearSetting", + "options": {} + } + ], + "serverControl": [ + { + "name": "startButton", + "options": {} + }, + { + "name": "performance", + "options": {} + }, + { + "name": "serverInfo", + "options": {} + } + ], + "modelSetting": [ + { + "name": "modelUploader", + "options": { + "showConfig": true, + "showOnnx": false, + "showPyTorch": true, + "showCorrespondence": false, + "showPyTorchCluster": true, + + "defaultEnablePyTorch": true + } + }, + { + "name": "framework", + "options": { + "showFramework": true + } + } + ], + "deviceSetting": [ + { + "name": "audioInput", + "options": {} + }, + { + "name": "audioOutput", + "options": {} + } + ], + "qualityControl": [ + { + "name": "noiseControl", + "options": {} + }, + { + "name": "gainControl", + "options": {} + }, + { + "name": "f0Detector", + "options": {} + }, + { + "name": "divider", + "options": {} + }, + { + "name": "analyzer", + "options": {} + } + ], + "speakerSetting": [ + { + "name": "dstId", + "options": { + "showF0": false, + "useServerInfo": true + } + }, + { + "name": "tune", + "options": {} + }, + { + "name": "clusterInferRatio", + "options": {} + }, + { + "name": "noiseScale", + "options": {} + }, + { + "name": "silentThreshold", + "options": {} + } + ], + "converterSetting": [ + { + "name": "inputChunkNum", + "options": {} + }, + { + "name": "extraDataLength", + "options": {} + }, + { + "name": "gpu", + "options": {} + } + ], + "advancedSetting": [ + { + "name": "serverURL", + "options": {} + }, + { + "name": "protocol", + "options": {} + }, + { + "name": "sampleRate", + "options": {} + }, + { + "name": "sendingSampleRate", + "options": {} + }, + { + "name": "crossFadeOverlapSize", + "options": {} + }, + { + "name": "crossFadeOffsetRate", + "options": {} + }, + { + "name": "crossFadeEndRate", + "options": {} + }, + { + "name": "downSamplingMode", + "options": {} + }, + { + "name": "trancateNumThreshold", + "options": {} + } + ] }, "dialogs": { "license": [ { - "title": "c", - "auther": "c", - "contact": "b", - "url": "a", + "title": "svc-develop-team", + "auther": "", + "contact": "", + "url": "https://github.com/svc-develop-team/so-vits-svc", "license": "MIT" } ] diff --git a/client/demo/dist/assets/gui_settings/so-vits-svc-40v2.json b/client/demo/dist/assets/gui_settings/so-vits-svc-40v2.json index 826c1ef3..bc2a5bcf 100644 --- a/client/demo/dist/assets/gui_settings/so-vits-svc-40v2.json +++ b/client/demo/dist/assets/gui_settings/so-vits-svc-40v2.json @@ -2,62 +2,172 @@ "type": "demo", "id": "so-vits-svc-40v2", "front": { - "title": { - "mainTitle": "Realtime Voice Changer Client", - "subTitle": "for so-vits-svc-40v2", - "lineNum": 1 - }, - "serverControl": { - "modelInfoEnable": true - }, - "modelSetting": { - "ONNXEnable": false, - "pyTorchEnable": true, - "MMVCCorrespondense": false, - "pyTorchClusterEnable": true, - "showPyTorchDefault": true, - "frameworkEnable": true, - "modelUploaderEnable": true, - "configRow": true, - "uploadRow": true - }, - "deviceSetting": {}, - "qualityControl": { - "F0DetectorEnable": true - }, - "speakerSetting": { - "srcIdEnable": false, - "dstIdEnable": true, - "editSpeakerIdMappingEnable": false, - "f0FactorEnable": false, - "tuningEnable": true, - "clusterInferRationEnable": true, - "noiseScaleEnable": true, - "silentThresholdEnable": true - }, - "converterSetting": { - "extraDataLengthEnable": true - }, - "advancedSetting": { - "serverURLEnable": true, - "protocolEnable": true, - "sampleRateEnable": true, - "sendingSampleRateEnable": true, - "crossFadeOverlapSizeEnable": true, - "crossFadeOffsetRateEnable": true, - "crossFadeEndRateEnable": true, - "downSamplingModeEnable": true, - "trancateNumTresholdEnable": true - } + "title": [ + { + "name": "title", + "options": { + "mainTitle": "Realtime Voice Changer Client", + "subTitle": "for so-vits-svc-40v2", + "lineNum": 1 + } + }, + { + "name": "clearSetting", + "options": {} + } + ], + "serverControl": [ + { + "name": "startButton", + "options": {} + }, + { + "name": "performance", + "options": {} + }, + { + "name": "serverInfo", + "options": {} + } + ], + "modelSetting": [ + { + "name": "modelUploader", + "options": { + "showConfig": true, + "showOnnx": false, + "showPyTorch": true, + "showCorrespondence": false, + "showPyTorchCluster": true, + + "defaultEnablePyTorch": true + } + }, + { + "name": "framework", + "options": { + "showFramework": true + } + } + ], + "deviceSetting": [ + { + "name": "audioInput", + "options": {} + }, + { + "name": "audioOutput", + "options": {} + } + ], + "qualityControl": [ + { + "name": "noiseControl", + "options": {} + }, + { + "name": "gainControl", + "options": {} + }, + { + "name": "f0Detector", + "options": {} + }, + { + "name": "divider", + "options": {} + }, + { + "name": "analyzer", + "options": {} + } + ], + "speakerSetting": [ + { + "name": "dstId", + "options": { + "showF0": false, + "useServerInfo": true + } + }, + { + "name": "tune", + "options": {} + }, + { + "name": "clusterInferRatio", + "options": {} + }, + { + "name": "noiseScale", + "options": {} + }, + { + "name": "silentThreshold", + "options": {} + } + ], + "converterSetting": [ + { + "name": "inputChunkNum", + "options": {} + }, + { + "name": "extraDataLength", + "options": {} + }, + { + "name": "gpu", + "options": {} + } + ], + "advancedSetting": [ + { + "name": "serverURL", + "options": {} + }, + { + "name": "protocol", + "options": {} + }, + { + "name": "sampleRate", + "options": {} + }, + { + "name": "sendingSampleRate", + "options": {} + }, + { + "name": "crossFadeOverlapSize", + "options": {} + }, + { + "name": "crossFadeOffsetRate", + "options": {} + }, + { + "name": "crossFadeEndRate", + "options": {} + }, + { + "name": "downSamplingMode", + "options": {} + }, + { + "name": "trancateNumThreshold", + "options": {} + } + ] }, "dialogs": { "license": [ { - "title": "c", - "auther": "c", - "contact": "b", - "url": "a", + "title": "svc-develop-team", + "auther": "", + "contact": "", + "url": "https://github.com/svc-develop-team/so-vits-svc", "license": "MIT" } ] diff --git a/client/demo/dist/index.js b/client/demo/dist/index.js index cf0468e6..1daf8009 100644 --- a/client/demo/dist/index.js +++ b/client/demo/dist/index.js @@ -356,7 +356,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"CorrespondenceSelectRow\": () => (/* binding */ CorrespondenceSelectRow)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _dannadori_voice_changer_client_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @dannadori/voice-changer-client-js */ \"./node_modules/@dannadori/voice-changer-client-js/dist/index.js\");\n/* harmony import */ var _dannadori_voice_changer_client_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_dannadori_voice_changer_client_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _001_provider_001_AppStateProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../001_provider/001_AppStateProvider */ \"./src/001_provider/001_AppStateProvider.tsx\");\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n\n\nvar CorrespondenceSelectRow = function CorrespondenceSelectRow() {\n var appState = (0,_001_provider_001_AppStateProvider__WEBPACK_IMPORTED_MODULE_5__.useAppState)();\n var CorrespondenceSelectRow = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n var correspondenceFileText = appState.clientSetting.clientSetting.correspondences ? JSON.stringify(appState.clientSetting.clientSetting.correspondences.map(function (x) {\n return x.dirname;\n })) : \"\";\n var onCorrespondenceFileLoadClicked = /*#__PURE__*/function () {\n var _ref = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default().mark(function _callee() {\n var file, correspondenceText, cors;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0,_dannadori_voice_changer_client_js__WEBPACK_IMPORTED_MODULE_4__.fileSelector)(\"\");\n case 2:\n file = _context.sent;\n _context.next = 5;\n return file.text();\n case 5:\n correspondenceText = _context.sent;\n cors = correspondenceText.split(\"\\n\").map(function (line) {\n var items = line.split(\"|\");\n if (items.length != 3) {\n console.warn(\"Invalid Correspondence Line:\", line);\n return null;\n } else {\n var cor = {\n sid: Number(items[0]),\n correspondence: Number(items[1]),\n dirname: items[2]\n };\n return cor;\n }\n }).filter(function (x) {\n return x != null;\n });\n console.log(cors);\n appState.clientSetting.updateClientSetting(_objectSpread(_objectSpread({}, appState.clientSetting.clientSetting), {}, {\n correspondences: cors\n }));\n case 9:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return function onCorrespondenceFileLoadClicked() {\n return _ref.apply(this, arguments);\n };\n }();\n var onCorrespondenceFileClearClicked = function onCorrespondenceFileClearClicked() {\n appState.clientSetting.updateClientSetting(_objectSpread(_objectSpread({}, appState.clientSetting.clientSetting), {}, {\n correspondences: []\n }));\n };\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-row split-3-3-4 left-padding-1 guided\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-item-title left-padding-2\"\n }, \"Correspondence\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-item-text\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", null, correspondenceFileText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-button-container\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-button\",\n onClick: onCorrespondenceFileLoadClicked\n }, \"select\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-button left-margin-1\",\n onClick: onCorrespondenceFileClearClicked\n }, \"clear\")));\n }, [appState.clientSetting.clientSetting.correspondences]);\n return CorrespondenceSelectRow;\n};\n\n//# sourceURL=webpack://demo/./src/components/demo/components/301-4_CorrespondenceSelectRow.tsx?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"CorrespondenceSelectRow\": () => (/* binding */ CorrespondenceSelectRow)\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _dannadori_voice_changer_client_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @dannadori/voice-changer-client-js */ \"./node_modules/@dannadori/voice-changer-client-js/dist/index.js\");\n/* harmony import */ var _dannadori_voice_changer_client_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_dannadori_voice_changer_client_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _001_provider_001_AppStateProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../001_provider/001_AppStateProvider */ \"./src/001_provider/001_AppStateProvider.tsx\");\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n\n\nvar CorrespondenceSelectRow = function CorrespondenceSelectRow() {\n var appState = (0,_001_provider_001_AppStateProvider__WEBPACK_IMPORTED_MODULE_5__.useAppState)();\n var CorrespondenceSelectRow = (0,react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n var correspondenceFileText = appState.clientSetting.clientSetting.correspondences ? JSON.stringify(appState.clientSetting.clientSetting.correspondences.map(function (x) {\n return x.dirname;\n })) : \"\";\n var onCorrespondenceFileLoadClicked = /*#__PURE__*/function () {\n var _ref = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default().mark(function _callee() {\n var file, correspondenceText, cors;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0,_dannadori_voice_changer_client_js__WEBPACK_IMPORTED_MODULE_4__.fileSelector)(\"\");\n case 2:\n file = _context.sent;\n _context.next = 5;\n return file.text();\n case 5:\n correspondenceText = _context.sent;\n cors = correspondenceText.split(\"\\n\").map(function (line) {\n var items = line.split(\"|\");\n if (items.length != 3) {\n console.warn(\"Invalid Correspondence Line:\", line);\n return null;\n } else {\n var cor = {\n sid: Number(items[0]),\n correspondence: Number(items[1]),\n dirname: items[2]\n };\n return cor;\n }\n }).filter(function (x) {\n return x != null;\n });\n console.log(\"recogninzed corresponding lines:\", cors);\n appState.clientSetting.updateClientSetting(_objectSpread(_objectSpread({}, appState.clientSetting.clientSetting), {}, {\n correspondences: cors\n }));\n case 9:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return function onCorrespondenceFileLoadClicked() {\n return _ref.apply(this, arguments);\n };\n }();\n var onCorrespondenceFileClearClicked = function onCorrespondenceFileClearClicked() {\n appState.clientSetting.updateClientSetting(_objectSpread(_objectSpread({}, appState.clientSetting.clientSetting), {}, {\n correspondences: []\n }));\n };\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-row split-3-3-4 left-padding-1 guided\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-item-title left-padding-2\"\n }, \"Correspondence\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-item-text\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", null, correspondenceFileText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-button-container\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-button\",\n onClick: onCorrespondenceFileLoadClicked\n }, \"select\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n className: \"body-button left-margin-1\",\n onClick: onCorrespondenceFileClearClicked\n }, \"clear\")));\n }, [appState.clientSetting.clientSetting, appState.clientSetting.updateClientSetting]);\n return CorrespondenceSelectRow;\n};\n\n//# sourceURL=webpack://demo/./src/components/demo/components/301-4_CorrespondenceSelectRow.tsx?"); /***/ }), diff --git a/client/demo/public/assets/gui_settings/MMVCv13.json b/client/demo/public/assets/gui_settings/MMVCv13.json index 6c6f75f6..83585b9b 100644 --- a/client/demo/public/assets/gui_settings/MMVCv13.json +++ b/client/demo/public/assets/gui_settings/MMVCv13.json @@ -2,65 +2,158 @@ "type": "demo", "id": "MMVCv13", "front": { - "title": { - "mainTitle": "Realtime Voice Changer Client", - "subTitle": "for MMVC v.1.3", - "lineNum": 1 - }, - "serverControl": { - "modelInfoEnable": true - }, - "modelSetting": { - "ONNXEnable": true, - "pyTorchEnable": true, - "MMVCCorrespondense": false, - "pyTorchClusterEnable": false, - "showPyTorchDefault": false, - "frameworkEnable": true, - "modelUploaderEnable": true, - "configRow": true, - "uploadRow": true - }, - "deviceSetting": {}, - "qualityControl": { - "F0DetectorEnable": false, - "analyzerRow": true, - "samplingRow": true, - "playRow": true - }, - "speakerSetting": { - "srcIdEnable": true, - "dstIdEnable": true, - "editSpeakerIdMappingEnable": true, - "f0FactorEnable": false, - "tuningEnable": false, - "clusterInferRationEnable": false, - "noiseScaleEnable": false, - "silentThresholdEnable": false - }, - "converterSetting": { - "extraDataLengthEnable": false - }, - "advancedSetting": { - "serverURLEnable": true, - "protocolEnable": true, - "sampleRateEnable": true, - "sendingSampleRateEnable": true, - "crossFadeOverlapSizeEnable": true, - "crossFadeOffsetRateEnable": true, - "crossFadeEndRateEnable": true, - "downSamplingModeEnable": true, - "trancateNumTresholdEnable": true - } + "title": [ + { + "name": "title", + "options": { + "mainTitle": "Realtime Voice Changer Client", + "subTitle": "for MMVC v.1.3", + "lineNum": 1 + } + }, + { + "name": "clearSetting", + "options": {} + } + ], + "serverControl": [ + { + "name": "startButton", + "options": {} + }, + { + "name": "performance", + "options": {} + }, + { + "name": "serverInfo", + "options": {} + } + ], + "modelSetting": [ + { + "name": "modelUploader", + "options": { + "showConfig": true, + "showOnnx": true, + "showPyTorch": true, + "showCorrespondence": false, + "showPyTorchCluster": false, + + "defaultEnablePyTorch": false + } + }, + { + "name": "framework", + "options": { + "showFramework": true + } + } + ], + "deviceSetting": [ + { + "name": "audioInput", + "options": {} + }, + { + "name": "audioOutput", + "options": {} + } + ], + "qualityControl": [ + { + "name": "noiseControl", + "options": {} + }, + { + "name": "gainControl", + "options": {} + }, + { + "name": "divider", + "options": {} + }, + { + "name": "analyzer", + "options": {} + } + ], + "speakerSetting": [ + { + "name": "srcId", + "options": { + "showF0": false + } + }, + { + "name": "dstId", + "options": { + "showF0": false, + "useServerInfo": false + } + }, + { + "name": "editSpeakerIdMapping", + "options": {} + } + ], + "converterSetting": [ + { + "name": "inputChunkNum", + "options": {} + }, + { + "name": "gpu", + "options": {} + } + ], + "advancedSetting": [ + { + "name": "serverURL", + "options": {} + }, + { + "name": "protocol", + "options": {} + }, + { + "name": "sampleRate", + "options": {} + }, + { + "name": "sendingSampleRate", + "options": {} + }, + { + "name": "crossFadeOverlapSize", + "options": {} + }, + { + "name": "crossFadeOffsetRate", + "options": {} + }, + { + "name": "crossFadeEndRate", + "options": {} + }, + { + "name": "downSamplingMode", + "options": {} + }, + { + "name": "trancateNumThreshold", + "options": {} + } + ] }, "dialogs": { "license": [ { - "title": "c", - "auther": "c", - "contact": "b", - "url": "a", + "title": "MMVC", + "auther": "isletennos", + "contact": "", + "url": "https://github.com/isletennos/MMVC_Trainer", "license": "MIT" } ] diff --git a/client/demo/public/assets/gui_settings/MMVCv15.json b/client/demo/public/assets/gui_settings/MMVCv15.json index cb95312c..503c30c5 100644 --- a/client/demo/public/assets/gui_settings/MMVCv15.json +++ b/client/demo/public/assets/gui_settings/MMVCv15.json @@ -2,65 +2,162 @@ "type": "demo", "id": "MMVCv15", "front": { - "title": { - "mainTitle": "Realtime Voice Changer Client", - "subTitle": "for MMVC v.1.5", - "lineNum": 1 - }, - "serverControl": { - "modelInfoEnable": true - }, - "modelSetting": { - "ONNXEnable": true, - "pyTorchEnable": true, - "MMVCCorrespondense": true, - "pyTorchClusterEnable": false, - "showPyTorchDefault": false, - "frameworkEnable": true, - "modelUploaderEnable": true, - "configRow": true, - "uploadRow": true - }, - "deviceSetting": {}, - "qualityControl": { - "F0DetectorEnable": true, - "analyzerRow": true, - "samplingRow": true, - "playRow": true - }, - "speakerSetting": { - "srcIdEnable": true, - "dstIdEnable": true, - "editSpeakerIdMappingEnable": false, - "f0FactorEnable": true, - "tuningEnable": false, - "clusterInferRationEnable": false, - "noiseScaleEnable": false, - "silentThresholdEnable": false - }, - "converterSetting": { - "extraDataLengthEnable": false - }, - "advancedSetting": { - "serverURLEnable": true, - "protocolEnable": true, - "sampleRateEnable": true, - "sendingSampleRateEnable": true, - "crossFadeOverlapSizeEnable": true, - "crossFadeOffsetRateEnable": true, - "crossFadeEndRateEnable": true, - "downSamplingModeEnable": true, - "trancateNumTresholdEnable": true - } + "title": [ + { + "name": "title", + "options": { + "mainTitle": "Realtime Voice Changer Client", + "subTitle": "for MMVC v.1.5", + "lineNum": 1 + } + }, + { + "name": "clearSetting", + "options": {} + } + ], + "serverControl": [ + { + "name": "startButton", + "options": {} + }, + { + "name": "performance", + "options": {} + }, + { + "name": "serverInfo", + "options": {} + } + ], + "modelSetting": [ + { + "name": "modelUploader", + "options": { + "showConfig": true, + "showOnnx": true, + "showPyTorch": true, + "showCorrespondence": true, + "showPyTorchCluster": false, + + "defaultEnablePyTorch": false + } + }, + { + "name": "framework", + "options": { + "showFramework": true + } + } + ], + "deviceSetting": [ + { + "name": "audioInput", + "options": {} + }, + { + "name": "audioOutput", + "options": {} + } + ], + "qualityControl": [ + { + "name": "noiseControl", + "options": {} + }, + { + "name": "gainControl", + "options": {} + }, + { + "name": "f0Detector", + "options": {} + }, + { + "name": "divider", + "options": {} + }, + { + "name": "analyzer", + "options": {} + } + ], + "speakerSetting": [ + { + "name": "srcId", + "options": { + "showF0": true + } + }, + { + "name": "dstId", + "options": { + "showF0": true, + "useServerInfo": false + } + }, + { + "name": "f0Factor", + "options": {} + } + ], + "converterSetting": [ + { + "name": "inputChunkNum", + "options": {} + }, + { + "name": "gpu", + "options": {} + } + ], + "advancedSetting": [ + { + "name": "serverURL", + "options": {} + }, + { + "name": "protocol", + "options": {} + }, + { + "name": "sampleRate", + "options": {} + }, + { + "name": "sendingSampleRate", + "options": {} + }, + { + "name": "crossFadeOverlapSize", + "options": {} + }, + { + "name": "crossFadeOffsetRate", + "options": {} + }, + { + "name": "crossFadeEndRate", + "options": {} + }, + { + "name": "downSamplingMode", + "options": {} + }, + { + "name": "trancateNumThreshold", + "options": {} + } + ] }, "dialogs": { "license": [ { - "title": "c", - "auther": "c", - "contact": "b", - "url": "a", + "title": "MMVC", + "auther": "isletennos", + "contact": "", + "url": "https://github.com/isletennos/MMVC_Trainer", "license": "MIT" } ] diff --git a/client/demo/public/assets/gui_settings/so-vits-svc-40.json b/client/demo/public/assets/gui_settings/so-vits-svc-40.json index 0dcdf974..2d77e628 100644 --- a/client/demo/public/assets/gui_settings/so-vits-svc-40.json +++ b/client/demo/public/assets/gui_settings/so-vits-svc-40.json @@ -2,65 +2,172 @@ "type": "demo", "id": "so-vits-svc-40", "front": { - "title": { - "mainTitle": "Realtime Voice Changer Client", - "subTitle": "for so-vits-svc-40", - "lineNum": 1 - }, - "serverControl": { - "modelInfoEnable": true - }, - "modelSetting": { - "ONNXEnable": false, - "pyTorchEnable": true, - "MMVCCorrespondense": false, - "pyTorchClusterEnable": true, - "showPyTorchDefault": true, - "frameworkEnable": true, - "modelUploaderEnable": true, - "configRow": true, - "uploadRow": true - }, - "deviceSetting": {}, - "qualityControl": { - "F0DetectorEnable": true, - "analyzerRow": true, - "samplingRow": true, - "playRow": true - }, - "speakerSetting": { - "srcIdEnable": false, - "dstIdEnable": true, - "editSpeakerIdMappingEnable": false, - "f0FactorEnable": false, - "tuningEnable": true, - "clusterInferRationEnable": true, - "noiseScaleEnable": true, - "silentThresholdEnable": true - }, - "converterSetting": { - "extraDataLengthEnable": true - }, - "advancedSetting": { - "serverURLEnable": true, - "protocolEnable": true, - "sampleRateEnable": true, - "sendingSampleRateEnable": true, - "crossFadeOverlapSizeEnable": true, - "crossFadeOffsetRateEnable": true, - "crossFadeEndRateEnable": true, - "downSamplingModeEnable": true, - "trancateNumTresholdEnable": true - } + "title": [ + { + "name": "title", + "options": { + "mainTitle": "Realtime Voice Changer Client", + "subTitle": "for so-vits-svc-40", + "lineNum": 1 + } + }, + { + "name": "clearSetting", + "options": {} + } + ], + "serverControl": [ + { + "name": "startButton", + "options": {} + }, + { + "name": "performance", + "options": {} + }, + { + "name": "serverInfo", + "options": {} + } + ], + "modelSetting": [ + { + "name": "modelUploader", + "options": { + "showConfig": true, + "showOnnx": false, + "showPyTorch": true, + "showCorrespondence": false, + "showPyTorchCluster": true, + + "defaultEnablePyTorch": true + } + }, + { + "name": "framework", + "options": { + "showFramework": true + } + } + ], + "deviceSetting": [ + { + "name": "audioInput", + "options": {} + }, + { + "name": "audioOutput", + "options": {} + } + ], + "qualityControl": [ + { + "name": "noiseControl", + "options": {} + }, + { + "name": "gainControl", + "options": {} + }, + { + "name": "f0Detector", + "options": {} + }, + { + "name": "divider", + "options": {} + }, + { + "name": "analyzer", + "options": {} + } + ], + "speakerSetting": [ + { + "name": "dstId", + "options": { + "showF0": false, + "useServerInfo": true + } + }, + { + "name": "tune", + "options": {} + }, + { + "name": "clusterInferRatio", + "options": {} + }, + { + "name": "noiseScale", + "options": {} + }, + { + "name": "silentThreshold", + "options": {} + } + ], + "converterSetting": [ + { + "name": "inputChunkNum", + "options": {} + }, + { + "name": "extraDataLength", + "options": {} + }, + { + "name": "gpu", + "options": {} + } + ], + "advancedSetting": [ + { + "name": "serverURL", + "options": {} + }, + { + "name": "protocol", + "options": {} + }, + { + "name": "sampleRate", + "options": {} + }, + { + "name": "sendingSampleRate", + "options": {} + }, + { + "name": "crossFadeOverlapSize", + "options": {} + }, + { + "name": "crossFadeOffsetRate", + "options": {} + }, + { + "name": "crossFadeEndRate", + "options": {} + }, + { + "name": "downSamplingMode", + "options": {} + }, + { + "name": "trancateNumThreshold", + "options": {} + } + ] }, "dialogs": { "license": [ { - "title": "c", - "auther": "c", - "contact": "b", - "url": "a", + "title": "svc-develop-team", + "auther": "", + "contact": "", + "url": "https://github.com/svc-develop-team/so-vits-svc", "license": "MIT" } ] diff --git a/client/demo/public/assets/gui_settings/so-vits-svc-40v2.json b/client/demo/public/assets/gui_settings/so-vits-svc-40v2.json index 826c1ef3..bc2a5bcf 100644 --- a/client/demo/public/assets/gui_settings/so-vits-svc-40v2.json +++ b/client/demo/public/assets/gui_settings/so-vits-svc-40v2.json @@ -2,62 +2,172 @@ "type": "demo", "id": "so-vits-svc-40v2", "front": { - "title": { - "mainTitle": "Realtime Voice Changer Client", - "subTitle": "for so-vits-svc-40v2", - "lineNum": 1 - }, - "serverControl": { - "modelInfoEnable": true - }, - "modelSetting": { - "ONNXEnable": false, - "pyTorchEnable": true, - "MMVCCorrespondense": false, - "pyTorchClusterEnable": true, - "showPyTorchDefault": true, - "frameworkEnable": true, - "modelUploaderEnable": true, - "configRow": true, - "uploadRow": true - }, - "deviceSetting": {}, - "qualityControl": { - "F0DetectorEnable": true - }, - "speakerSetting": { - "srcIdEnable": false, - "dstIdEnable": true, - "editSpeakerIdMappingEnable": false, - "f0FactorEnable": false, - "tuningEnable": true, - "clusterInferRationEnable": true, - "noiseScaleEnable": true, - "silentThresholdEnable": true - }, - "converterSetting": { - "extraDataLengthEnable": true - }, - "advancedSetting": { - "serverURLEnable": true, - "protocolEnable": true, - "sampleRateEnable": true, - "sendingSampleRateEnable": true, - "crossFadeOverlapSizeEnable": true, - "crossFadeOffsetRateEnable": true, - "crossFadeEndRateEnable": true, - "downSamplingModeEnable": true, - "trancateNumTresholdEnable": true - } + "title": [ + { + "name": "title", + "options": { + "mainTitle": "Realtime Voice Changer Client", + "subTitle": "for so-vits-svc-40v2", + "lineNum": 1 + } + }, + { + "name": "clearSetting", + "options": {} + } + ], + "serverControl": [ + { + "name": "startButton", + "options": {} + }, + { + "name": "performance", + "options": {} + }, + { + "name": "serverInfo", + "options": {} + } + ], + "modelSetting": [ + { + "name": "modelUploader", + "options": { + "showConfig": true, + "showOnnx": false, + "showPyTorch": true, + "showCorrespondence": false, + "showPyTorchCluster": true, + + "defaultEnablePyTorch": true + } + }, + { + "name": "framework", + "options": { + "showFramework": true + } + } + ], + "deviceSetting": [ + { + "name": "audioInput", + "options": {} + }, + { + "name": "audioOutput", + "options": {} + } + ], + "qualityControl": [ + { + "name": "noiseControl", + "options": {} + }, + { + "name": "gainControl", + "options": {} + }, + { + "name": "f0Detector", + "options": {} + }, + { + "name": "divider", + "options": {} + }, + { + "name": "analyzer", + "options": {} + } + ], + "speakerSetting": [ + { + "name": "dstId", + "options": { + "showF0": false, + "useServerInfo": true + } + }, + { + "name": "tune", + "options": {} + }, + { + "name": "clusterInferRatio", + "options": {} + }, + { + "name": "noiseScale", + "options": {} + }, + { + "name": "silentThreshold", + "options": {} + } + ], + "converterSetting": [ + { + "name": "inputChunkNum", + "options": {} + }, + { + "name": "extraDataLength", + "options": {} + }, + { + "name": "gpu", + "options": {} + } + ], + "advancedSetting": [ + { + "name": "serverURL", + "options": {} + }, + { + "name": "protocol", + "options": {} + }, + { + "name": "sampleRate", + "options": {} + }, + { + "name": "sendingSampleRate", + "options": {} + }, + { + "name": "crossFadeOverlapSize", + "options": {} + }, + { + "name": "crossFadeOffsetRate", + "options": {} + }, + { + "name": "crossFadeEndRate", + "options": {} + }, + { + "name": "downSamplingMode", + "options": {} + }, + { + "name": "trancateNumThreshold", + "options": {} + } + ] }, "dialogs": { "license": [ { - "title": "c", - "auther": "c", - "contact": "b", - "url": "a", + "title": "svc-develop-team", + "auther": "", + "contact": "", + "url": "https://github.com/svc-develop-team/so-vits-svc", "license": "MIT" } ] diff --git a/client/demo/src/components/demo/components/301-4_CorrespondenceSelectRow.tsx b/client/demo/src/components/demo/components/301-4_CorrespondenceSelectRow.tsx index 3d01a9cd..01bb02b6 100644 --- a/client/demo/src/components/demo/components/301-4_CorrespondenceSelectRow.tsx +++ b/client/demo/src/components/demo/components/301-4_CorrespondenceSelectRow.tsx @@ -25,7 +25,7 @@ export const CorrespondenceSelectRow = () => { return cor } }).filter(x => { return x != null }) as Correspondence[] - console.log(cors) + console.log("recogninzed corresponding lines:", cors) appState.clientSetting.updateClientSetting({ ...appState.clientSetting.clientSetting, correspondences: cors }) } @@ -47,7 +47,7 @@ export const CorrespondenceSelectRow = () => { ) - }, [appState.clientSetting.clientSetting.correspondences]) + }, [appState.clientSetting.clientSetting, appState.clientSetting.updateClientSetting]) return CorrespondenceSelectRow } \ No newline at end of file