x
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# config.py
|
||||
# ASR配置
|
||||
|
||||
ASR_CONFIG = {
|
||||
"host": "10.10.10.202",
|
||||
"port": 10096,
|
||||
"mode": "2pass", # 识别模式:online/offline/2pass
|
||||
"chunk_size": [5, 10, 5],
|
||||
"chunk_interval": 10,
|
||||
"use_itn": 1,
|
||||
"hotwords": "" # 热词(可选)
|
||||
}
|
||||
# 音频参数
|
||||
AUDIO_PARAMS = {
|
||||
"sample_rate": 16000, # 前端设置的 16000
|
||||
"channels": 1, # 单声道
|
||||
"sample_width": 2, # 16位深度(2字节/样本)
|
||||
"frame_size": 1024 # 前端设置的 1024
|
||||
}
|
||||
# TTS配置
|
||||
TTS_WS_URL = "ws://localhost:8003/tts"
|
||||
|
||||
# 大模型配置
|
||||
LLM_SSE_URL = "http://localhost:8002/llm/stream"
|
||||
|
||||
# 队列配置
|
||||
AUDIO_QUEUE_MAXSIZE = 50 # 音频队列大小
|
||||
LLM_QUEUE_MAXSIZE = 20
|
||||
Reference in New Issue
Block a user