84 lines
2.0 KiB
JSON
84 lines
2.0 KiB
JSON
{
|
|
"server": {
|
|
"host": "0.0.0.0",
|
|
"port": 8000,
|
|
"cors_origins": ["*"]
|
|
},
|
|
"audio": {
|
|
"sample_rate_hz": 16000,
|
|
"channels": 1,
|
|
"frame_ms": 20
|
|
},
|
|
"session": {
|
|
"inactivity_timeout_sec": 60
|
|
},
|
|
"turn": {
|
|
"vad": {
|
|
"confidence": 0.7,
|
|
"start_secs": 0.35,
|
|
"stop_secs": 0.2,
|
|
"min_volume": 0.65
|
|
},
|
|
"interruption_min_chars": 3,
|
|
"interruption_use_interim": true,
|
|
"interruption_short_replies": [
|
|
"是",
|
|
"是的",
|
|
"对",
|
|
"对的",
|
|
"嗯",
|
|
"好",
|
|
"好的",
|
|
"行",
|
|
"可以",
|
|
"没问题",
|
|
"不是",
|
|
"不",
|
|
"不行",
|
|
"不用",
|
|
"不要",
|
|
"没有",
|
|
"否"
|
|
],
|
|
"user_speech_timeout_sec": 0.2,
|
|
"idle_prompt_timeout_sec": 3.0,
|
|
"idle_prompt_max_count": 3,
|
|
"idle_prompt_text": "你好,请问还在吗?"
|
|
},
|
|
"agent": {
|
|
"system_prompt": "你是一个有用的语音对话助手名字叫小白",
|
|
"greeting": "你好,我是小白,请问有什么可以帮你?",
|
|
"greeting_mode": "fixed",
|
|
"response_state": {
|
|
"enabled": false,
|
|
"tag": "state",
|
|
"event_type": "response.state",
|
|
"max_prefix_chars": 256
|
|
}
|
|
},
|
|
"services": {
|
|
"stt": {
|
|
"provider": "openai",
|
|
"api_key": "sk-uudpgflahqqjbofhgcbwjjefgwhvwwmxgeyehcueqlemwavq",
|
|
"base_url": "https://api.siliconflow.cn/v1",
|
|
"model": "TeleAI/TeleSpeechASR",
|
|
"language": "zh"
|
|
},
|
|
"llm": {
|
|
"provider": "openai",
|
|
"api_key": "sk-fc4d59b360475f53401a864db8ce0985010acc4e696723d20a90d6569f38d80a",
|
|
"base_url": "https://api.qnaigc.com/v1",
|
|
"model": "deepseek-v3",
|
|
"temperature": 0.7
|
|
},
|
|
"tts": {
|
|
"provider": "openai",
|
|
"api_key": "sk-uudpgflahqqjbofhgcbwjjefgwhvwwmxgeyehcueqlemwavq",
|
|
"base_url": "https://api.siliconflow.cn/v1",
|
|
"model": "FunAudioLLM/CosyVoice2-0.5B",
|
|
"voice": "FunAudioLLM/CosyVoice2-0.5B:anna",
|
|
"source_sample_rate_hz": 24000
|
|
}
|
|
}
|
|
}
|