xiaozhi-esp32-server/docs/performance_tester.md
2025-10-12 17:36:36 +03:30

27 lines
910 B
Markdown

# Guide to using performance testing tools for speech recognition, large language models, non-streaming speech synthesis, streaming speech synthesis, and vision models
1. Create a data directory in the main/xiaozhi-server directory
2. Create a .config.yaml file in the data directory
3. In .data/config.yaml, write the parameters of your speech recognition, large language model, streaming speech synthesis, and vision model
For example:
```
LLM:
ChatGLMLLM:
# Define LLM API type
type: openai
# glm-4-flash is free, but you still need to register and fill in the api_key
# You can find your api key here https://bigmodel.cn/usercenter/proj-mgmt/apikeys
model_name: glm-4-flash
url: https://open.bigmodel.cn/api/paas/v4/
api_key: your chat-glm web key
TTS:
VLLM:
ASR:
```
4. Run performance_tester.py in the main/xiaozhi-server directory:
```
python performance_tester.py
```