mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
27 lines
910 B
Markdown
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
|
|
```
|