From 01d7946cfe2b1f44b58966cf17aac517aa6a9f8e Mon Sep 17 00:00:00 2001 From: "quemingyi.wudong" Date: Mon, 28 Oct 2024 11:53:08 +0800 Subject: [PATCH] chore: replace default configruation --- .eslintrc | 2 +- .prettierrc | 2 +- README.md | 6 +++--- src/config/index.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.eslintrc b/.eslintrc index ab7e101..e5cee25 100644 --- a/.eslintrc +++ b/.eslintrc @@ -41,7 +41,7 @@ } ], "rules": { - "prettier/prettier": ["error", { "trailingComma": "es5", "printWidth": 100 }], + "prettier/prettier": ["warn", { "trailingComma": "es5", "printWidth": 200 }], "linebreak-style": ["error", "unix"], "no-console": ["error", { "allow": ["warn", "error", "log"] }], "no-case-declarations": 0, diff --git a/.prettierrc b/.prettierrc index 1b78833..d1d43dc 100644 --- a/.prettierrc +++ b/.prettierrc @@ -3,7 +3,7 @@ "semi": true, "singleQuote": true, "jsxSingleQuote": false, - "printWidth": 100, + "printWidth": 200, "useTabs": false, "tabWidth": 2, "trailingComma": "es5" diff --git a/README.md b/README.md index e22a9bf..361fb24 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ - Node 版本: 16.0+ - 需要准备两个 Terminal,分别启动服务端、前端页面。 - 根据你自定义的 -RoomId、UserId 以及申请的 AppID、BusinessID、Token、ASR AppID、TTS AppID 等信息,修改 `config/index.ts` 文件中的配置信息。 +RoomId、UserId 以及申请的 AppID、BusinessID、Token、ASR AppID、TTS AppID,修改 `src/config/index.ts` 文件中的配置信息。 - 根据你申请到的 AK、SK、SessionToken, 修改 `Server/app.js` 文件中的配置信息。 - 如果您已经自己完成了服务端的逻辑,可以修改前端代码文件 `src/config/index.ts` 中的 `AIGC_PROXY_HOST` 修改请求的域名,并在 `src/app/api.ts` 中修改接口的参数配置。 ## 服务端 - +进到项目根目录 ### 安装依赖 ```shell cd Server @@ -28,7 +28,7 @@ node app.js ``` ## 前端页面 - +进到项目根目录 ### 安装依赖 ```shell yarn diff --git a/src/config/index.ts b/src/config/index.ts index 718bc84..c6aa831 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -35,7 +35,7 @@ export class Config { TTSConfig = { AppId: 'Your TTS AppId', - VoiceType: VOICE_TYPE.活泼女声, + VoiceType: VOICE_TYPE.通用女声, Cluster: TTS_CLUSTER.TTS, };