mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
910 B
910 B
Guide to using performance testing tools for speech recognition, large language models, non-streaming speech synthesis, streaming speech synthesis, and vision models
- Create a data directory in the main/xiaozhi-server directory
- Create a .config.yaml file in the data directory
- 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:
- Run performance_tester.py in the main/xiaozhi-server directory:
python performance_tester.py