50 lines
1.1 KiB
JSON
50 lines
1.1 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
|
|
},
|
|
"agent": {
|
|
"system_prompt": "FastGPT app owns the system prompt when send_system_prompt is false.",
|
|
"greeting": "你好",
|
|
"greeting_mode": "generated"
|
|
},
|
|
"services": {
|
|
"stt": {
|
|
"provider": "openai",
|
|
"api_key": "YOUR_STT_KEY",
|
|
"base_url": "https://api.openai.com/v1",
|
|
"model": "gpt-4o-mini-transcribe",
|
|
"language": "zh"
|
|
},
|
|
"llm": {
|
|
"provider": "fastgpt",
|
|
"api_key": "fastgpt-xxxxx",
|
|
"base_url": "http://localhost:3000",
|
|
"model": "my-voice-app",
|
|
"chat_id": null,
|
|
"variables": {
|
|
"user_name": "访客"
|
|
},
|
|
"detail": false,
|
|
"timeout_sec": 60.0,
|
|
"send_system_prompt": false
|
|
},
|
|
"tts": {
|
|
"provider": "openai",
|
|
"api_key": "YOUR_TTS_KEY",
|
|
"base_url": "https://api.openai.com/v1",
|
|
"model": "gpt-4o-mini-tts",
|
|
"voice": "alloy"
|
|
}
|
|
}
|
|
}
|