Skip to content

Commit

Permalink
fix 部分问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzongming committed Sep 3, 2024
1 parent 33b4511 commit 97a2773
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ example/index_copy.js
build

.vscode/
_del/
_del/

client/esp-ai/examples/test
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ src/config_gen.js
package-lock.json
pre-version-log.md
readme_privce.md

client/esp-ai/examples/test
2 changes: 1 addition & 1 deletion client/esp-ai/src/sdk/begin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void ESP_AI::begin(ESP_AI_CONFIG config)
}
if (_wifi_pwd == "")
{
_wifi_name = wifi_config.wifi_pwd;
_wifi_pwd = wifi_config.wifi_pwd;
}

DEBUG_PRINTLN(debug, "wifi name: " + _wifi_name);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esp-ai",
"version": "2.1.0",
"version": "2.1.1",
"description": "Provide a complete set of AI dialogue solutions for your development board, including but not limited to the IAT+LLM+TTS integration solution for the ESP32 series development board. | 为你的开发板提供全套的AI对话方案,包括但不限于 `ESP32` 系列开发板的 `IAT+LLM+TTS` 集成方案。",
"repository": "https://github.com/wangzongming/esp-ai",
"main": "src/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/functions/iat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ async function cb({ device_id, text }) {
}));
message && await TTS_FN(device_id, {
text: message,
reRecord: true,
// reRecord: true,
reRecord: false,
pauseInputAudio: true,
need_record: true,
});
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function main(config = {}) {
global.G_config = { ..._config, ...config };

log.info(`服务端口:${G_config.port}`);
log.info(`服务插件:${G_config.plugins.map(item=> item.name).join(" | ")}`);
log.info(`服务插件:${G_config.plugins ? G_config.plugins.map(item=> item.name).join(" | ") : "-"}`);

G_ws_server = init_server();
} catch (err) {
Expand Down

0 comments on commit 97a2773

Please sign in to comment.