From 659c470eba542383987aad227b7f918100f131fa Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期五, 11 九月 2026 15:09:05 +0800
Subject: [PATCH] 小智终端 5种 场景模式 OK

---
 xiaozhi-esp32-server/main/xiaozhi-server/config.yaml |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/xiaozhi-esp32-server/main/xiaozhi-server/config.yaml b/xiaozhi-esp32-server/main/xiaozhi-server/config.yaml
index 7ff25d3..6487bee 100644
--- a/xiaozhi-esp32-server/main/xiaozhi-server/config.yaml
+++ b/xiaozhi-esp32-server/main/xiaozhi-server/config.yaml
@@ -56,7 +56,13 @@
   data_dir: data
 
 # 浣跨敤瀹屽0闊虫枃浠跺悗鍒犻櫎鏂囦欢(Delete the sound file when you are done using it)
+# 杩欏彧褰卞搷 ASR/TTS 涓存椂鏂囦欢锛屼笉褰卞搷涓嬮潰鐨� audio_archive 褰掓。锛屼篃涓嶅奖鍝嶆櫤鎺у彴鑱婂ぉ璁板綍
 delete_audio: true
+# 鎸夎澶囩紪鍙� / 鍦烘櫙妯″紡 / 鏃ユ湡褰掓。鐢ㄦ埛闊抽锛屼究浜庡洖鏀惧拰鍒嗘瀽
+# 璺緞锛歞ata/recordings/{璁惧MAC}/{chat|shadowing|repeater|translation|bilingual}/{鏃ユ湡}/{鏃跺垎绉掓绉拀_asr.wav
+audio_archive:
+  enabled: true
+  dir: data/recordings
 # 娌℃湁璇煶杈撳叆澶氫箙鍚庢柇寮�杩炴帴(绉�)锛岄粯璁�2鍒嗛挓锛屽嵆120绉�
 close_connection_no_voice_time: 120
 # TTS璇锋眰瓒呮椂鏃堕棿(绉�)
@@ -70,6 +76,14 @@
 # Phase 1锛氳繘鍏� chat.conversation 鍚庝富鍔ㄥ紑鍙�
 enable_proactive_greeting: true
 proactive_chat_greeting: 鎴戜滑鏉ヨ亰澶╁惂銆�
+# 璺熻妯″紡榛樿鍙ュ瓙锛屽彲鎸夎绋嬫浛鎹�
+app_runtime:
+  shadowing_sentences:
+    - "Hello, how are you today?"
+    - "I like to read English books."
+    - "The weather is nice this morning."
+    - "Can you say that again, please?"
+    - "Practice a little every day."
 # 璇村畬璇濇槸鍚﹀紑鍚彁绀洪煶
 enable_stop_tts_notify: false
 # 璇村畬璇濇槸鍚﹀紑鍚彁绀洪煶锛岄煶鏁堝湴鍧�
@@ -275,6 +289,7 @@
       - play_music
       - switch_app
       - start_repeater
+      - start_shadowing
   function_call:
     # 涓嶉渶瑕佸姩type
     type: function_call
@@ -293,6 +308,7 @@
       - play_music
       - switch_app
       - start_repeater
+      - start_shadowing
       #- hass_state
       #- hass_play_music
 

--
Gitblit v1.9.1