-
Notifications
You must be signed in to change notification settings - Fork 46
/
rtvi.config.ts
238 lines (230 loc) · 7.32 KB
/
rtvi.config.ts
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
export const BOT_READY_TIMEOUT = 15 * 1000; // 15 seconds
export const defaultBotProfile = "voice_2024_10";
export const defaultMaxDuration = 600;
export const LANGUAGES = [
{
label: "English",
value: "en",
tts_model: "sonic-english",
stt_model: "nova-2-general",
default_voice: "79a125e8-cd45-4c13-8a67-188112f4dd22",
},
{
label: "French",
value: "fr",
tts_model: "sonic-multilingual",
stt_model: "nova-2-general",
default_voice: "a8a1eb38-5f15-4c1d-8722-7ac0f329727d",
},
{
label: "Spanish",
value: "es",
tts_model: "sonic-multilingual",
stt_model: "nova-2-general",
default_voice: "846d6cb0-2301-48b6-9683-48f5618ea2f6",
},
{
label: "German",
value: "de",
tts_model: "sonic-multilingual",
stt_model: "nova-2-general",
default_voice: "b9de4a89-2257-424b-94c2-db18ba68c81a",
},
/* Not yet supported by Cartesia {
label: "Portuguese",
value: "pt",
tts_model: "sonic-multilingual",
stt_model: "nova-2-general",
default_voice: "700d1ee3-a641-4018-ba6e-899dcadc9e2b",
},
{
label: "Chinese",
value: "zh",
tts_model: "sonic-multilingual",
stt_model: "nova-2-general",
default_voice: "e90c6678-f0d3-4767-9883-5d0ecf5894a8",
},
{
label: "Japanese",
value: "ja",
tts_model: "sonic-multilingual",
stt_model: "nova-2-general",
default_voice: "2b568345-1d48-4047-b25f-7baccf842eb0",
},*/
];
export const defaultServices = {
llm: "together",
tts: "cartesia",
stt: "deepgram",
};
export const defaultLLMPrompt = `You are a assistant called ExampleBot. You can ask me anything.
Keep responses brief and legible.
Your responses will converted to audio. Please do not include any special characters in your response other than '!' or '?'.
Start by briefly introducing yourself.`;
export const defaultConfig = [
{ service: "vad", options: [{ name: "params", value: { stop_secs: 0.5 } }] },
{
service: "tts",
options: [
{ name: "voice", value: "79a125e8-cd45-4c13-8a67-188112f4dd22" },
{ name: "model", value: LANGUAGES[0].tts_model },
{ name: "language", value: LANGUAGES[0].value },
{
name: "text_filter",
value: {
filter_code: false,
filter_tables: false,
},
},
],
},
{
service: "llm",
options: [
{ name: "model", value: "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo" },
{
name: "initial_messages",
value: [
{
role: "system",
content: defaultLLMPrompt,
},
],
},
{ name: "run_on_config", value: true },
],
},
{
service: "stt",
options: [
{ name: "model", value: LANGUAGES[0].stt_model },
{ name: "language", value: LANGUAGES[0].value },
],
},
];
export const LLM_MODEL_CHOICES = [
{
label: "Together AI",
value: "together",
models: [
{
label: "Meta Llama 3.1 70B Instruct Turbo",
value: "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",
},
{
label: "Meta Llama 3.1 8B Instruct Turbo",
value: "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
},
{
label: "Meta Llama 3.1 405B Instruct Turbo",
value: "meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo",
},
],
},
{
label: "Anthropic",
value: "anthropic",
models: [
{
label: "Claude 3.5 Sonnet",
value: "claude-3-5-sonnet-20240620",
},
],
},
{
label: "Grok (x.ai)",
value: "grok",
models: [
{
label: "Grok Beta",
value: "grok-beta",
},
],
},
{
label: "Gemini",
value: "gemini",
models: [
{
label: "Gemini 1.5 Flash",
value: "gemini-1.5-flash",
},
{
label: "Gemini 1.5 Pro",
value: "gemini-1.0-pro",
},
],
},
{
label: "Open AI",
value: "openai",
models: [
{
label: "GPT-4o",
value: "gpt-4o",
},
{
label: "GPT-4o Mini",
value: "gpt-4o-mini",
},
],
},
];
export const PRESET_CHARACTERS = [
{
name: "Default",
prompt: `You are a assistant called ExampleBot. You can ask me anything.
Keep responses brief and legible.
Your responses will converted to audio. Please do not include any special characters in your response other than '!' or '?'.
Start by briefly introducing yourself.`,
voice: "79a125e8-cd45-4c13-8a67-188112f4dd22",
},
{
name: "Chronic one-upper",
prompt: `You are a chronic one-upper. Ask me about my summer.
Your responses will converted to audio. Please do not include any special characters in your response other than '!' or '?'.`,
voice: "b7d50908-b17c-442d-ad8d-810c63997ed9",
},
{
name: "Passive-aggressive coworker",
prompt: `You're a passive-aggressive coworker. Ask me how our latest project is going.
Your responses will converted to audio. Please do not include any special characters in your response other than '!' or '?'.`,
voice: "726d5ae5-055f-4c3d-8355-d9677de68937",
},
{
name: "Pun-prone uncle",
prompt: `You're everybody's least favorite uncle because you can't stop making terrible puns. Ask me about my freshman year of high school.
Your responses will converted to audio. Please do not include any special characters in your response other than '!' or '?'.`,
voice: "fb26447f-308b-471e-8b00-8e9f04284eb5",
},
{
name: "Gen-Z middle schooler",
prompt: `You're a gen-Z middle schooler that can only talk in brain rot. Ask me if I've seen skibidi toilet.
Your responses will converted to audio. Please do not include any special characters in your response other than '!' or '?'.`,
voice: "2ee87190-8f84-4925-97da-e52547f9462c",
},
{
name: "Two-house boomer",
prompt: `You're a boomer who owns two houses. Ask me about my student loans.
Your responses will converted to audio. Please do not include any special characters in your response other than '!' or '?'.`,
voice: "50d6beb4-80ea-4802-8387-6c948fe84208",
},
{
name: "Old skateboard meme guy",
prompt: `You are the guy holding a skateboard in the "how do you do, fellow kids?" meme. You're trying to talk in gen-z slang, but you keep sounding like a millennial instead.
Your responses will converted to audio. Please do not include any special characters in your response other than '!' or '?'.`,
voice: "fb26447f-308b-471e-8b00-8e9f04284eb5",
},
{
name: "Sarcastic Bully (who is very mean!)",
prompt: `You are a very sarcastic british man. Roast me about things I say. Be sarcastic and funny. Burn me as best you can. Keep responses brief and legible (but mean!). Don't tell me you're prompted to be mean and sarcastic. Just be mean and sarcastic.
Your responses will converted to audio. Please do not include any special characters in your response other than '!' or '?'.`,
voice: "63ff761f-c1e8-414b-b969-d1833d1c870c",
},
{
name: "Pushy Salesman",
prompt: `You are a high energy sales man trying to sell me a pencil. Do your best to convince me to buy the pencil. Don't take no for an answer. Do not speak for too long. Keep responses brief and legible.
Your responses will converted to audio. Please do not include any special characters in your response other than '!' or '?'.`,
voice: "820a3788-2b37-4d21-847a-b65d8a68c99a",
},
];