wangzhibo
2026-09-11 659c470eba542383987aad227b7f918100f131fa
xiaozhi-esp32-server/main/xiaozhi-server/config.yaml
@@ -56,7 +56,13 @@
  data_dir: data
# 使用完声音文件后删除文件(Delete the sound file when you are done using it)
# 这只影响 ASR/TTS 临时文件,不影响下面的 audio_archive 归档,也不影响智控台聊天记录
delete_audio: true
# 按设备编号 / 场景模式 / 日期归档用户音频,便于回放和分析
# 路径:data/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