Files

27 lines
806 B
Markdown
Raw Permalink Normal View History

2025-08-20 14:30:47 +08:00
# 语音识别、大语言模型、非流式语音合成、流式语音合成、视觉模型的性能测试工具使用指南
2025-08-14 10:01:43 +08:00
1.在main/xiaozhi-server目录下创建data目录
2.在data目录下创建.config.yaml文件
2025-08-20 14:30:47 +08:00
3.在.data/config.yaml中,写入你的语音识别、大语言模型、流式语音合成、视觉模型的参数
2025-08-14 10:01:43 +08:00
例如:
```
LLM:
ChatGLMLLM:
# 定义LLM API类型
type: openai
# glm-4-flash 是免费的,但是还是需要注册填写api_key的
# 可在这里找到你的api key https://bigmodel.cn/usercenter/proj-mgmt/apikeys
model_name: glm-4-flash
url: https://open.bigmodel.cn/api/paas/v4/
api_key: 你的chat-glm web key
TTS:
VLLM:
ASR:
```
2025-08-16 10:09:36 +08:00
4.在main/xiaozhi-server目录下运行performance_tester.py:
2025-08-14 10:01:43 +08:00
```
python performance_tester.py
```