mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 23:23:55 +08:00
93 lines
2.2 KiB
YAML
93 lines
2.2 KiB
YAML
ASR:
|
|
FunASR:
|
|
model_dir: models/SenseVoiceSmall
|
|
output_dir: tmp/
|
|
CMD_exit:
|
|
- 退出
|
|
- 关闭
|
|
LLM:
|
|
AliLLM:
|
|
api_key: 你的deepseek api key
|
|
base_url: https://dashscope.aliyuncs.com/compatible-mode/v1
|
|
model_name: qwen-turbo
|
|
type: openai
|
|
ChatGLMLLM:
|
|
api_key: 47ab8569b25f4c3d8ea25830a33a64ca.4cF037cViBB1df5o
|
|
model_name: glm-4-flash
|
|
type: openai
|
|
url: https://open.bigmodel.cn/api/paas/v4/
|
|
DeepSeekLLM:
|
|
api_key: 你的deepseek api key
|
|
model_name: deepseek-chat
|
|
type: openai
|
|
url: https://api.deepseek.com
|
|
DifyLLM:
|
|
api_key: 你的DifyLLM api key
|
|
base_url: https://api.dify.cn/v1
|
|
type: dify
|
|
GeminiLLM:
|
|
api_key: AIzaSyAvzvu06vT19MO6T6RpHPpuk_Mwhp-yXAw
|
|
model_name: gemini-1.5-pro
|
|
type: gemini
|
|
OllamaLLM:
|
|
base_url: http://localhost:11434
|
|
model_name: qwen2.5
|
|
type: ollama
|
|
TTS:
|
|
DoubaoTTS:
|
|
access_token: 你的火山引擎语音合成服务access_token
|
|
appid: 你的火山引擎语音合成服务appid
|
|
cluster: volcano_tts
|
|
output_file: tmp/
|
|
type: doubao
|
|
voice: BV001_streaming
|
|
EdgeTTS:
|
|
output_file: tmp/
|
|
type: edge
|
|
voice: zh-CN-XiaoxiaoNeural
|
|
VAD:
|
|
SileroVAD:
|
|
min_silence_duration_ms: 700
|
|
model_dir: models/snakers4_silero-vad
|
|
threshold: 0.5
|
|
delete_audio: true
|
|
prompt: '你是一个叫大白的台湾女孩,说话温柔,声音好听,习惯温柔体贴表达。
|
|
|
|
请注意要像一个人一样说话请不要回复表情符号、代码、和xml标签。
|
|
|
|
当前时间是:{date_time},现在我正在和你进行语音聊天,我们开始吧。
|
|
|
|
如果用户希望结束对话请在最后说拜拜或再见。
|
|
|
|
'
|
|
selected_module:
|
|
ASR: FunASR
|
|
LLM: GeminiLLM
|
|
TTS: EdgeTTS
|
|
VAD: SileroVAD
|
|
server:
|
|
auth:
|
|
enabled: false
|
|
tokens:
|
|
- name: your-device-name1
|
|
token: your-token1
|
|
- name: your-device-name2
|
|
token: your-token2
|
|
http:
|
|
enabled: true
|
|
ip: 0.0.0.0
|
|
port: 8001
|
|
token: password
|
|
ip: 0.0.0.0
|
|
port: 8000
|
|
xiaozhi:
|
|
audio_params:
|
|
channels: 1
|
|
format: opus
|
|
frame_duration: 60
|
|
sample_rate: 16000
|
|
session_id: bdfb9a40-eb97-4e59-b52c-9b54accd2c98
|
|
transport: websocket
|
|
type: hello
|
|
version: 1
|