-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvoicebot.example.json
More file actions
102 lines (102 loc) · 2.96 KB
/
voicebot.example.json
File metadata and controls
102 lines (102 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"logging": {
"level": "info",
"format": "console"
},
"provider": {
"asr": {
"type": "aliyun",
"aliyun": {
"api_key": "",
"model": "fun-asr-realtime",
"endpoint": "wss://dashscope.aliyuncs.com/api-ws/v1/inference"
}
},
"tts": {
"type": "aliyun",
"aliyun": {
"api_key": "",
"endpoint": "wss://dashscope.aliyuncs.com/api-ws/v1/inference",
"workspace": "",
"model": "cosyvoice-v3-flash",
"voice": "longanyang",
"format": "pcm",
"sample_rate": 16000,
"volume": 50,
"rate": 1.0,
"pitch": 1.0,
"text_type": "PlainText",
"enable_ssml": false,
"enable_data_inspection": true,
"voice_map": {
"happy": "longanyang",
"sad": "zhichu",
"angry": "zhimeng",
"calm": "longxiaochun",
"excited": "longanyang",
"default": "longanyang"
}
}
},
"llm": {
"type": "openai",
"openai": {
"api_key": "",
"base_url": "https://open.bigmodel.cn/api/coding/paas/v4",
"model": "glm-4-flash"
}
}
},
"audio": {
"mixer": {
"tts_volume": 1.0,
"resource_volume": 1.0,
"sample_rate": 16000,
"channels": 2,
"frames_per_buffer": 1024
},
"tts_pipeline": {
"max_tts_buffer": 3,
"max_concurrent_tts": 2,
"text_queue_size": 100
},
"tts_scheduler": {
"max_in_flight_sentences": 2,
"max_cache_sentences": 0
},
"in_pipe": {
"sample_rate": 16000,
"channels": 1,
"enable_vad": true,
"vad_threshold": 0.5,
"vad_type": "silero",
"vad_model_path": "models/silero_vad.onnx",
"vad_min_silence_ms": 500,
"vad_speech_pad_ms": 300
}
},
"tools": {
"types": {
"getTime": "query",
"getWeather": "query",
"search": "query",
"playMusic": "action",
"setVolume": "action",
"pauseMusic": "action"
},
"action_responses": {
"playMusic": "正在为您播放{{song}}",
"setVolume": "已将音量设置为{{level}}",
"pauseMusic": "音乐已暂停"
}
},
"memory": {
"mode": "session",
"session_max_turns": 10,
"session_summary_every_n": 20,
"long_term_db_path": "data/memory.db",
"long_term_max_results": 6,
"retention_days": 365,
"fts_min_score": 0
}
}