From 4fd07c36c311affd9f8951ea295351f8dc7bd64a Mon Sep 17 00:00:00 2001 From: Pan <381500590@qq.com> Date: Thu, 10 Aug 2023 13:46:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=AF=E9=A3=9E=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E8=AF=86=E5=88=AB=EF=BC=88=E6=B5=81=E5=BC=8F=E7=89=88?= =?UTF-8?q?=EF=BC=89=E4=B8=8E=E8=AF=AD=E9=9F=B3=E5=90=88=E6=88=90=EF=BC=88?= =?UTF-8?q?=E6=B5=81=E5=BC=8F=E7=89=88=EF=BC=89=E6=A8=A1=E5=9D=97=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E5=9C=A8=E8=AE=BE=E7=BD=AE=E4=B8=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=AF=AD=E9=9F=B3=E5=BC=80=E5=90=AF=E3=80=81=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E7=9B=B8=E5=85=B3=E9=85=8D=E7=BD=AE=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/package.json | 16 +- .../src/components/common/Setting/General.vue | 33 +- views/src/locales/en-US.ts | 1 + views/src/locales/ko-KR.ts | 1 + views/src/locales/ru-RU.ts | 1 + views/src/locales/zh-CN.ts | 1 + views/src/locales/zh-TW.ts | 1 + views/src/store/modules/app/helper.ts | 5 +- views/src/store/modules/app/index.ts | 8 +- views/src/views/chat/index.vue | 147 ++++++- .../views/chat/voicekeda/kedatts/base64js.js | 243 ++++++++++++ .../chat/voicekeda/kedatts/browser.min.js | 30 ++ .../views/chat/voicekeda/kedatts/download.js | 109 ++++++ .../voicekeda/kedatts/transcode.worker.js | 47 +++ .../views/chat/voicekeda/kedatts/tts-ws.ts | 347 +++++++++++++++++ .../views/chat/voicekeda/until/base64js.js | 243 ++++++++++++ .../views/chat/voicekeda/until/browser.min.js | 30 ++ .../views/chat/voicekeda/until/iatRecorder.ts | 362 ++++++++++++++++++ .../chat/voicekeda/until/transcode.worker.js | 41 ++ 19 files changed, 1661 insertions(+), 5 deletions(-) create mode 100644 views/src/views/chat/voicekeda/kedatts/base64js.js create mode 100644 views/src/views/chat/voicekeda/kedatts/browser.min.js create mode 100644 views/src/views/chat/voicekeda/kedatts/download.js create mode 100644 views/src/views/chat/voicekeda/kedatts/transcode.worker.js create mode 100644 views/src/views/chat/voicekeda/kedatts/tts-ws.ts create mode 100644 views/src/views/chat/voicekeda/until/base64js.js create mode 100644 views/src/views/chat/voicekeda/until/browser.min.js create mode 100644 views/src/views/chat/voicekeda/until/iatRecorder.ts create mode 100644 views/src/views/chat/voicekeda/until/transcode.worker.js diff --git a/views/package.json b/views/package.json index 4e31a97d..306949e3 100644 --- a/views/package.json +++ b/views/package.json @@ -23,24 +23,36 @@ "common:prepare": "husky install" }, "dependencies": { + "@efox/emp-vuett": "^1.0.0", + "@rollup/plugin-inject": "^5.0.3", "@traptitech/markdown-it-katex": "^3.6.0", "@vueuse/core": "^9.13.0", + "axios": "^1.3.5", + "crypto-es": "^1.2.7", + "fast-xml-parser": "^4.2.5", "highlight.js": "^11.7.0", "html2canvas": "^1.4.1", + "jquery": "3.6.2", + "js-base64": "^3.7.3", "katex": "^0.16.4", "markdown-it": "^13.0.1", "naive-ui": "^2.34.3", "pinia": "^2.0.33", "qs": "^6.11.1", + "vconsole": "^3.15.1", + "vite-plugin-commonjs": "^0.6.2", + "voice-input-button2": "^1.1.9", "vue": "^3.2.47", "vue-i18n": "^9.2.2", - "vue-router": "^4.1.6" + "vue-router": "^4.2.2", + "vuex": "^4.1.0" }, "devDependencies": { "@antfu/eslint-config": "^0.35.3", "@commitlint/cli": "^17.4.4", "@commitlint/config-conventional": "^17.4.4", "@iconify/vue": "^4.1.0", + "@originjs/vite-plugin-commonjs": "^1.0.3", "@types/crypto-js": "^4.1.1", "@types/katex": "^0.16.0", "@types/markdown-it": "^12.2.3", @@ -56,9 +68,11 @@ "less": "^4.1.3", "lint-staged": "^13.1.2", "markdown-it-link-attributes": "^4.0.1", + "node-sass": "^9.0.0", "npm-run-all": "^4.1.5", "postcss": "^8.4.21", "rimraf": "^4.2.0", + "sass-loader": "^13.3.2", "tailwindcss": "^3.2.7", "typescript": "~4.9.5", "vite": "^4.2.0", diff --git a/views/src/components/common/Setting/General.vue b/views/src/components/common/Setting/General.vue index f96626da..1a87448c 100644 --- a/views/src/components/common/Setting/General.vue +++ b/views/src/components/common/Setting/General.vue @@ -1,7 +1,7 @@