@rannah-labs/react-voice-orb 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +240 -0
- package/assets/orb-ss.png +0 -0
- package/assets/thing.png +0 -0
- package/dist/bun-server/src/types/index.d.ts +37 -0
- package/dist/bun-server/src/types/index.js +2 -0
- package/dist/src/app/Types/TranscriberStuff.d.ts +0 -0
- package/dist/src/app/Types/TranscriberStuff.js +1 -0
- package/dist/src/app/Types/apiModels.d.ts +31 -0
- package/dist/src/app/Types/apiModels.js +2 -0
- package/dist/src/app/Types/api_types.d.ts +34 -0
- package/dist/src/app/Types/api_types.js +2 -0
- package/dist/src/app/Types/better-trpc.d.ts +5 -0
- package/dist/src/app/Types/better-trpc.js +23 -0
- package/dist/src/app/Types/browser-only.d.ts +1 -0
- package/dist/src/app/Types/browser-only.js +12 -0
- package/dist/src/app/Types/builltInNodesTemplates.d.ts +1070 -0
- package/dist/src/app/Types/builltInNodesTemplates.js +1341 -0
- package/dist/src/app/Types/defaults.d.ts +7 -0
- package/dist/src/app/Types/defaults.js +210 -0
- package/dist/src/app/Types/demo_extension.d.ts +11 -0
- package/dist/src/app/Types/demo_extension.js +190 -0
- package/dist/src/app/Types/envObject.d.ts +97 -0
- package/dist/src/app/Types/envObject.js +5 -0
- package/dist/src/app/Types/firebase.d.ts +30413 -0
- package/dist/src/app/Types/firebase.js +6696 -0
- package/dist/src/app/Types/gen_openapi.d.ts +130 -0
- package/dist/src/app/Types/gen_openapi.js +2 -0
- package/dist/src/app/Types/global_types.d.ts +254 -0
- package/dist/src/app/Types/global_types.js +6 -0
- package/dist/src/app/Types/messages_types.d.ts +76 -0
- package/dist/src/app/Types/messages_types.js +1 -0
- package/dist/src/app/Types/vapi_types.d.ts +358 -0
- package/dist/src/app/Types/vapi_types.js +2 -0
- package/dist/src/app/Types/vf_types.d.ts +33 -0
- package/dist/src/app/Types/vf_types.js +2 -0
- package/dist/src/public_packages/react-voice-orb/src/animation-orb.d.ts +11 -0
- package/dist/src/public_packages/react-voice-orb/src/animation-orb.js +397 -0
- package/dist/src/public_packages/react-voice-orb/src/index.d.ts +5 -0
- package/dist/src/public_packages/react-voice-orb/src/index.js +16 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/AIAudioProvider.d.ts +21 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/AIAudioProvider.js +81 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/ThemeProvider.d.ts +23 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/ThemeProvider.js +202 -0
- package/dist/src/public_packages/react-voice-orb/src/scripts/same-script.d.ts +1 -0
- package/dist/src/public_packages/react-voice-orb/src/scripts/same-script.js +79 -0
- package/dist/src/public_packages/react-voice-orb/src/spinner.d.ts +3 -0
- package/dist/src/public_packages/react-voice-orb/src/spinner.js +17 -0
- package/dist/src/public_packages/react-voice-orb/tsconfig.tsbuildinfo +1 -0
- package/dist/vg-docker/src/+global_consts/client.d.ts +84 -0
- package/dist/vg-docker/src/+global_consts/client.js +105 -0
- package/package.json +46 -0
- package/scripts/post-tsc.ts +74 -0
- package/src/animation-orb.tsx +441 -0
- package/src/index.ts +5 -0
- package/src/providers/AIAudioProvider.tsx +100 -0
- package/src/providers/ThemeProvider.tsx +211 -0
- package/src/scripts/same-script.ts +73 -0
- package/src/spinner.tsx +19 -0
- package/tsconfig.json +34 -0
- package/webpack.config.js +141 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
export interface DeepgramTranscriber {
|
|
2
|
+
provider: "deepgram";
|
|
3
|
+
model?: "nova-2" | "nova-2-general" | "nova-2-meeting" | "nova-2-phonecall" | "nova-2-finance" | "nova-2-conversationalai" | "nova-2-voicemail" | "nova-2-video" | "nova-2-medical" | "nova-2-drivethru" | "nova-2-automotive" | "nova" | "nova-general" | "nova-phonecall" | "nova-medical" | "enhanced" | "enhanced-general" | "enhanced-meeting" | "enhanced-phonecall" | "enhanced-finance" | "base" | "base-general" | "base-meeting" | "base-phonecall" | "base-finance" | "base-conversationalai" | "base-voicemail" | "base-video" | string;
|
|
4
|
+
language?: "cs" | "da" | "da-DK" | "de-CH" | "nl" | "en" | "en-US" | "en-AU" | "en-GB" | "en-NZ" | "en-IN" | "nl-BE" | "fr" | "fr-CA" | "de" | "el" | "hi" | "hi-Latn" | "id" | "it" | "ja" | "ko" | "ko-KR" | "no" | "pl" | "pt" | "pt-BR" | "ru" | "es" | "es-419" | "sv" | "sv-SE" | "tr" | "uk" | "zh" | "zh-CN" | "zh-TW";
|
|
5
|
+
smartFormat?: boolean;
|
|
6
|
+
keywords?: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface TalkscriberTranscriber {
|
|
9
|
+
provider: "talkscriber";
|
|
10
|
+
model: "whisper";
|
|
11
|
+
language?: "en" | "zh" | "de" | "es" | "ru" | "ko" | "fr" | "ja" | "pt" | "tr" | "pl" | "ca" | "nl" | "ar" | "sv" | "it" | "id" | "hi" | "fi" | "vi" | "he" | "uk" | "el" | "ms" | "cs" | "ro" | "da" | "hu" | "ta" | "no" | "th" | "ur" | "hr" | "bg" | "lt" | "la" | "mi" | "ml" | "cy" | "sk" | "te" | "fa" | "lv" | "bn" | "sr" | "az" | "sl" | "kn" | "et" | "mk" | "br" | "eu" | "is" | "hy" | "ne" | "mn" | "bs" | "kk" | "sq" | "sw" | "gl" | "mr" | "pa" | "si" | "km" | "sn" | "yo" | "so" | "af" | "oc" | "ka" | "be" | "tg" | "sd" | "gu" | "am" | "yi" | "lo" | "uz" | "fo" | "ht" | "ps" | "tk" | "nn" | "mt" | "sa" | "lb" | "my" | "bo" | "tl" | "mg" | "as" | "tt" | "haw" | "ln" | "ha" | "ba" | "jw" | "su" | "yue";
|
|
12
|
+
}
|
|
13
|
+
export interface JsonSchema {
|
|
14
|
+
type: "string" | "number" | "integer" | "boolean" | "array" | "object";
|
|
15
|
+
items?: JsonSchema;
|
|
16
|
+
prefixItems?: JsonSchema[];
|
|
17
|
+
contains?: JsonSchema;
|
|
18
|
+
properties?: Record<string, JsonSchema>;
|
|
19
|
+
patternProperties?: Record<string, JsonSchema>;
|
|
20
|
+
additionalProperties?: JsonSchema;
|
|
21
|
+
dependentSchemas?: Record<string, JsonSchema>;
|
|
22
|
+
propertyNames?: JsonSchema;
|
|
23
|
+
unevaluatedProperties?: JsonSchema;
|
|
24
|
+
const?: any;
|
|
25
|
+
not?: JsonSchema;
|
|
26
|
+
oneOf?: JsonSchema[];
|
|
27
|
+
anyOf?: JsonSchema[];
|
|
28
|
+
allOf?: JsonSchema[];
|
|
29
|
+
if?: JsonSchema;
|
|
30
|
+
then?: JsonSchema;
|
|
31
|
+
else?: JsonSchema;
|
|
32
|
+
title?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
multipleOf?: number;
|
|
35
|
+
maximum?: number;
|
|
36
|
+
exclusiveMaximum?: number;
|
|
37
|
+
minimum?: number;
|
|
38
|
+
exclusiveMinimum?: number;
|
|
39
|
+
maxLength?: number;
|
|
40
|
+
minLength?: number;
|
|
41
|
+
pattern?: string;
|
|
42
|
+
format?: string;
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
minItems?: number;
|
|
45
|
+
minContains?: number;
|
|
46
|
+
maxContains?: number;
|
|
47
|
+
maxProperties?: number;
|
|
48
|
+
minProperties?: number;
|
|
49
|
+
required?: string[];
|
|
50
|
+
dependentRequired?: Record<string, string[]>;
|
|
51
|
+
enum?: any[];
|
|
52
|
+
$id?: string;
|
|
53
|
+
$ref?: string;
|
|
54
|
+
$schema?: string;
|
|
55
|
+
$comment?: string;
|
|
56
|
+
default?: any;
|
|
57
|
+
examples?: any[];
|
|
58
|
+
readOnly?: boolean;
|
|
59
|
+
writeOnly?: boolean;
|
|
60
|
+
contentEncoding?: string;
|
|
61
|
+
contentMediaType?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface OpenAIFunctionParameters {
|
|
64
|
+
type: "object";
|
|
65
|
+
properties: Record<string, JsonSchema>;
|
|
66
|
+
required?: string[];
|
|
67
|
+
}
|
|
68
|
+
export interface OpenAIFunction {
|
|
69
|
+
name: string;
|
|
70
|
+
description?: string;
|
|
71
|
+
parameters?: OpenAIFunctionParameters;
|
|
72
|
+
async?: boolean;
|
|
73
|
+
serverUrl?: string;
|
|
74
|
+
serverUrlSecret?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface Server {
|
|
77
|
+
url: string;
|
|
78
|
+
secret?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface Condition {
|
|
81
|
+
param: string;
|
|
82
|
+
value: any;
|
|
83
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
|
|
84
|
+
}
|
|
85
|
+
export interface ToolMessageStart {
|
|
86
|
+
type: "request-start";
|
|
87
|
+
content: string;
|
|
88
|
+
conditions?: Condition[];
|
|
89
|
+
}
|
|
90
|
+
export interface ToolMessageComplete {
|
|
91
|
+
type: "request-complete";
|
|
92
|
+
content: string;
|
|
93
|
+
conditions?: Condition[];
|
|
94
|
+
}
|
|
95
|
+
export interface ToolMessageFailed {
|
|
96
|
+
type: "request-failed";
|
|
97
|
+
content: string;
|
|
98
|
+
conditions?: Condition[];
|
|
99
|
+
}
|
|
100
|
+
export interface ToolMessageDelayed {
|
|
101
|
+
type: "request-response-delayed";
|
|
102
|
+
content: string;
|
|
103
|
+
timingMilliseconds: number;
|
|
104
|
+
conditions?: Condition[];
|
|
105
|
+
}
|
|
106
|
+
export type FunctionToolMessage = ToolMessageStart | ToolMessageComplete | ToolMessageFailed | ToolMessageDelayed;
|
|
107
|
+
export interface FunctionTool {
|
|
108
|
+
type: "function";
|
|
109
|
+
messages?: FunctionToolMessage[];
|
|
110
|
+
function: OpenAIFunction;
|
|
111
|
+
server?: Server;
|
|
112
|
+
async?: boolean;
|
|
113
|
+
}
|
|
114
|
+
export interface TransferCallTool {
|
|
115
|
+
type: "transferCall";
|
|
116
|
+
messages?: (ToolMessageStart | ToolMessageComplete | ToolMessageFailed | ToolMessageDelayed)[];
|
|
117
|
+
destinations?: any[];
|
|
118
|
+
server?: Server;
|
|
119
|
+
function?: OpenAIFunction;
|
|
120
|
+
}
|
|
121
|
+
export interface EndCallTool {
|
|
122
|
+
type: "endCall";
|
|
123
|
+
messages?: (ToolMessageStart | ToolMessageComplete | ToolMessageFailed | ToolMessageDelayed)[];
|
|
124
|
+
function?: OpenAIFunction;
|
|
125
|
+
}
|
|
126
|
+
export interface DtmfTool {
|
|
127
|
+
type: "dtmf";
|
|
128
|
+
messages?: (ToolMessageStart | ToolMessageComplete | ToolMessageFailed | ToolMessageDelayed)[];
|
|
129
|
+
function?: OpenAIFunction;
|
|
130
|
+
}
|
|
131
|
+
export type OpenAIMessageRole = "assistant" | "function" | "user" | "system" | "tool";
|
|
132
|
+
export interface OpenAIMessage {
|
|
133
|
+
content: string | null;
|
|
134
|
+
role: OpenAIMessageRole;
|
|
135
|
+
function_call?: any;
|
|
136
|
+
tool_calls?: any[];
|
|
137
|
+
tool_call_id?: string;
|
|
138
|
+
}
|
|
139
|
+
export interface KnowledgeBase {
|
|
140
|
+
topK?: number;
|
|
141
|
+
fileIds: string[];
|
|
142
|
+
provider: "canonical";
|
|
143
|
+
}
|
|
144
|
+
export interface TogetherAIModel {
|
|
145
|
+
messages?: OpenAIMessage[];
|
|
146
|
+
tools?: (TransferCallTool | FunctionTool | EndCallTool | DtmfTool)[];
|
|
147
|
+
provider: "together-ai";
|
|
148
|
+
model: string;
|
|
149
|
+
temperature?: number;
|
|
150
|
+
knowledgeBase?: KnowledgeBase;
|
|
151
|
+
maxTokens?: number;
|
|
152
|
+
emotionRecognitionEnabled?: boolean;
|
|
153
|
+
}
|
|
154
|
+
export interface AnyscaleModel {
|
|
155
|
+
messages?: OpenAIMessage[];
|
|
156
|
+
tools?: (TransferCallTool | FunctionTool | EndCallTool | DtmfTool)[];
|
|
157
|
+
provider: "anyscale";
|
|
158
|
+
model: string;
|
|
159
|
+
temperature?: number;
|
|
160
|
+
knowledgeBase?: KnowledgeBase;
|
|
161
|
+
maxTokens?: number;
|
|
162
|
+
emotionRecognitionEnabled?: boolean;
|
|
163
|
+
}
|
|
164
|
+
export interface OpenRouterModel {
|
|
165
|
+
messages?: OpenAIMessage[];
|
|
166
|
+
tools?: (TransferCallTool | FunctionTool | EndCallTool | DtmfTool)[];
|
|
167
|
+
provider: "openrouter";
|
|
168
|
+
model: string;
|
|
169
|
+
temperature?: number;
|
|
170
|
+
knowledgeBase?: KnowledgeBase;
|
|
171
|
+
maxTokens?: number;
|
|
172
|
+
emotionRecognitionEnabled?: boolean;
|
|
173
|
+
}
|
|
174
|
+
export interface PerplexityAIModel {
|
|
175
|
+
messages?: OpenAIMessage[];
|
|
176
|
+
tools?: (TransferCallTool | FunctionTool | EndCallTool | DtmfTool)[];
|
|
177
|
+
provider: "perplexity-ai";
|
|
178
|
+
model: string;
|
|
179
|
+
temperature?: number;
|
|
180
|
+
knowledgeBase?: KnowledgeBase;
|
|
181
|
+
maxTokens?: number;
|
|
182
|
+
emotionRecognitionEnabled?: boolean;
|
|
183
|
+
}
|
|
184
|
+
export interface DeepInfraModel {
|
|
185
|
+
messages?: OpenAIMessage[];
|
|
186
|
+
tools?: (TransferCallTool | FunctionTool | EndCallTool | DtmfTool)[];
|
|
187
|
+
provider: "deepinfra";
|
|
188
|
+
model: string;
|
|
189
|
+
temperature?: number;
|
|
190
|
+
knowledgeBase?: KnowledgeBase;
|
|
191
|
+
maxTokens?: number;
|
|
192
|
+
emotionRecognitionEnabled?: boolean;
|
|
193
|
+
}
|
|
194
|
+
export interface CustomLLMModel {
|
|
195
|
+
messages?: OpenAIMessage[];
|
|
196
|
+
tools?: (TransferCallTool | FunctionTool | EndCallTool | DtmfTool)[];
|
|
197
|
+
provider: "custom-llm";
|
|
198
|
+
url: string;
|
|
199
|
+
urlRequestMetadataEnabled?: boolean;
|
|
200
|
+
model?: string;
|
|
201
|
+
temperature?: number;
|
|
202
|
+
knowledgeBase?: KnowledgeBase;
|
|
203
|
+
maxTokens?: number;
|
|
204
|
+
emotionRecognitionEnabled?: boolean;
|
|
205
|
+
}
|
|
206
|
+
export interface GroqModel {
|
|
207
|
+
messages?: OpenAIMessage[];
|
|
208
|
+
tools?: (TransferCallTool | FunctionTool | EndCallTool | DtmfTool)[];
|
|
209
|
+
model: "mixtral-8x7b-32768" | "llama3-8b-8192" | "llama3-70b-8192";
|
|
210
|
+
provider: "groq";
|
|
211
|
+
temperature?: number;
|
|
212
|
+
knowledgeBase?: KnowledgeBase;
|
|
213
|
+
maxTokens?: number;
|
|
214
|
+
emotionRecognitionEnabled?: boolean;
|
|
215
|
+
}
|
|
216
|
+
export interface AnthropicModel {
|
|
217
|
+
messages?: OpenAIMessage[];
|
|
218
|
+
tools?: (TransferCallTool | FunctionTool | EndCallTool | DtmfTool)[];
|
|
219
|
+
model: "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307";
|
|
220
|
+
provider: "anthropic";
|
|
221
|
+
temperature?: number;
|
|
222
|
+
knowledgeBase?: KnowledgeBase;
|
|
223
|
+
maxTokens?: number;
|
|
224
|
+
emotionRecognitionEnabled?: boolean;
|
|
225
|
+
}
|
|
226
|
+
export interface DeepgramVoice {
|
|
227
|
+
inputPreprocessingEnabled?: boolean;
|
|
228
|
+
inputMinCharacters?: number;
|
|
229
|
+
inputPunctuationBoundaries?: ("。" | "," | "." | "!" | "?" | ";" | ")" | "،" | "۔" | "।" | "॥" | "|" | "||" | "," | ":")[];
|
|
230
|
+
fillerInjectionEnabled?: boolean;
|
|
231
|
+
provider: "deepgram";
|
|
232
|
+
voiceId: "asteria" | "luna" | "stella" | "athena" | "hera" | "orion" | "arcas" | "perseus" | "angus" | "orpheus" | "helios" | "zeus" | string;
|
|
233
|
+
}
|
|
234
|
+
export interface ElevenLabsVoice {
|
|
235
|
+
inputPreprocessingEnabled?: boolean;
|
|
236
|
+
inputMinCharacters?: number;
|
|
237
|
+
inputPunctuationBoundaries?: ("。" | "," | "." | "!" | "?" | ";" | ")" | "،" | "۔" | "।" | "॥" | "|" | "||" | "," | ":")[];
|
|
238
|
+
fillerInjectionEnabled?: boolean;
|
|
239
|
+
provider: "11labs";
|
|
240
|
+
voiceId: "burt" | "marissa" | "andrea" | "sarah" | "phillip" | "steve" | "joseph" | "myra" | "paula" | "ryan" | "drew" | "paul" | "mrb" | "matilda" | "mark" | string;
|
|
241
|
+
stability?: number;
|
|
242
|
+
similarityBoost?: number;
|
|
243
|
+
style?: number;
|
|
244
|
+
useSpeakerBoost?: boolean;
|
|
245
|
+
optimizeStreamingLatency?: number;
|
|
246
|
+
enableSsmlParsing?: boolean;
|
|
247
|
+
model?: "eleven_multilingual_v2" | "eleven_turbo_v2" | "eleven_monolingual_v1";
|
|
248
|
+
}
|
|
249
|
+
export type LLMTool = TransferCallTool | FunctionTool | EndCallTool | DtmfTool;
|
|
250
|
+
export interface OpenAIModel {
|
|
251
|
+
messages?: OpenAIMessage[];
|
|
252
|
+
tools?: LLMTool[];
|
|
253
|
+
provider: "openai";
|
|
254
|
+
model: "gpt-4o" | "gpt-4o-2024-05-13" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-turbo-preview" | "gpt-4-0125-preview" | "gpt-4-1106-preview" | "gpt-4" | "gpt-4-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0613";
|
|
255
|
+
fallbackModels?: ("gpt-4o" | "gpt-4o-2024-05-13" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-turbo-preview" | "gpt-4-0125-preview" | "gpt-4-1106-preview" | "gpt-4" | "gpt-4-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0613")[];
|
|
256
|
+
semanticCachingEnabled?: boolean;
|
|
257
|
+
numFastTurns?: number;
|
|
258
|
+
temperature?: number;
|
|
259
|
+
knowledgeBase?: KnowledgeBase;
|
|
260
|
+
maxTokens?: number;
|
|
261
|
+
emotionRecognitionEnabled?: boolean;
|
|
262
|
+
functions?: OpenAIFunction[];
|
|
263
|
+
}
|
|
264
|
+
export interface PlayHTVoice {
|
|
265
|
+
inputPreprocessingEnabled?: boolean;
|
|
266
|
+
inputMinCharacters?: number;
|
|
267
|
+
inputPunctuationBoundaries?: ("。" | "," | "." | "!" | "?" | ";" | ")" | "،" | "۔" | "।" | "॥" | "|" | "||" | "," | ":")[];
|
|
268
|
+
fillerInjectionEnabled?: boolean;
|
|
269
|
+
provider: "playht";
|
|
270
|
+
voiceId: "jennifer" | "melissa" | "will" | "chris" | "matt" | "jack" | "ruby" | "davis" | "donna" | "michael" | string;
|
|
271
|
+
speed?: number;
|
|
272
|
+
temperature?: number;
|
|
273
|
+
emotion?: "female_happy" | "female_sad" | "female_angry" | "female_fearful" | "female_disgust" | "female_surprised" | "male_happy" | "male_sad" | "male_angry" | "male_fearful" | "male_disgust" | "male_surprised";
|
|
274
|
+
voiceGuidance?: number;
|
|
275
|
+
styleGuidance?: number;
|
|
276
|
+
textGuidance?: number;
|
|
277
|
+
}
|
|
278
|
+
export interface RimeAIVoice {
|
|
279
|
+
inputPreprocessingEnabled?: boolean;
|
|
280
|
+
inputMinCharacters?: number;
|
|
281
|
+
inputPunctuationBoundaries?: ("。" | "," | "." | "!" | "?" | ";" | ")" | "،" | "۔" | "।" | "॥" | "|" | "||" | "," | ":")[];
|
|
282
|
+
fillerInjectionEnabled?: boolean;
|
|
283
|
+
provider: "rime-ai";
|
|
284
|
+
voiceId: "abbie" | "allison" | "ally" | "alona" | "amber" | "ana" | "antoine" | "armon" | "brenda" | "brittany" | "carol" | "colin" | "courtney" | "elena" | "elliot" | "eva" | "geoff" | "gerald" | "hank" | "helen" | "hera" | "jen" | "joe" | "joy" | "juan" | "kendra" | "kendrick" | "kenneth" | "kevin" | "kris" | "linda" | "madison" | "marge" | "marina" | "marissa" | "marta" | "maya" | "nicholas" | "nyles" | "phil" | "reba" | "rex" | "rick" | "ritu" | "rob" | "rodney" | "rohan" | "rosco" | "samantha" | "sandy" | "selena" | "seth" | "sharon" | "stan" | "tamra" | "tanya" | "tibur" | "tj" | "tyler" | "viv" | "yadira" | string;
|
|
285
|
+
speed?: number;
|
|
286
|
+
}
|
|
287
|
+
export interface OpenAIVoice {
|
|
288
|
+
inputPreprocessingEnabled?: boolean;
|
|
289
|
+
inputMinCharacters?: number;
|
|
290
|
+
inputPunctuationBoundaries?: ("。" | "," | "." | "!" | "?" | ";" | ")" | "،" | "۔" | "।" | "॥" | "|" | "||" | "," | ":")[];
|
|
291
|
+
fillerInjectionEnabled?: boolean;
|
|
292
|
+
provider: "openai";
|
|
293
|
+
voiceId: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer" | string;
|
|
294
|
+
speed?: number;
|
|
295
|
+
}
|
|
296
|
+
export interface AzureVoice {
|
|
297
|
+
inputPreprocessingEnabled?: boolean;
|
|
298
|
+
inputMinCharacters?: number;
|
|
299
|
+
inputPunctuationBoundaries?: ("。" | "," | "." | "!" | "?" | ";" | ")" | "،" | "۔" | "।" | "॥" | "|" | "||" | "," | ":")[];
|
|
300
|
+
fillerInjectionEnabled?: boolean;
|
|
301
|
+
provider: "azure";
|
|
302
|
+
voiceId: "andrew" | "brian" | "emma" | string;
|
|
303
|
+
speed?: number;
|
|
304
|
+
}
|
|
305
|
+
export interface LMNTVoice {
|
|
306
|
+
inputPreprocessingEnabled?: boolean;
|
|
307
|
+
inputMinCharacters?: number;
|
|
308
|
+
inputPunctuationBoundaries?: ("。" | "," | "." | "!" | "?" | ";" | ")" | "،" | "۔" | "।" | "॥" | "|" | "||" | "," | ":")[];
|
|
309
|
+
fillerInjectionEnabled?: boolean;
|
|
310
|
+
provider: "lmnt";
|
|
311
|
+
voiceId: "lily" | "daniel" | string;
|
|
312
|
+
speed?: number;
|
|
313
|
+
}
|
|
314
|
+
export interface NeetsVoice {
|
|
315
|
+
inputPreprocessingEnabled?: boolean;
|
|
316
|
+
inputMinCharacters?: number;
|
|
317
|
+
inputPunctuationBoundaries?: ("。" | "," | "." | "!" | "?" | ";" | ")" | "،" | "۔" | "।" | "॥" | "|" | "||" | "," | ":")[];
|
|
318
|
+
fillerInjectionEnabled?: boolean;
|
|
319
|
+
provider: "neets";
|
|
320
|
+
voiceId: "lily" | "daniel" | string;
|
|
321
|
+
}
|
|
322
|
+
export type VapiServerMessage = "status-update" | "transcript" | "hang" | "function-call" | "tool-calls" | "end-of-call-report" | "conversation-update" | "phone-call-control" | "model-output" | "voice-input";
|
|
323
|
+
export interface VapiAssistant {
|
|
324
|
+
isServerUrlSecretSet?: boolean;
|
|
325
|
+
transcriber?: DeepgramTranscriber | TalkscriberTranscriber;
|
|
326
|
+
model?: OpenAIModel | TogetherAIModel | AnyscaleModel | OpenRouterModel | PerplexityAIModel | DeepInfraModel | GroqModel | AnthropicModel | CustomLLMModel | any;
|
|
327
|
+
voice?: AzureVoice | ElevenLabsVoice | PlayHTVoice | RimeAIVoice | DeepgramVoice | OpenAIVoice | LMNTVoice | NeetsVoice;
|
|
328
|
+
forwardingPhoneNumber?: string;
|
|
329
|
+
firstMessageMode?: "assistant-speaks-first" | "assistant-waits-for-user";
|
|
330
|
+
voicemailDetectionTypes?: ("machine_start" | "human" | "fax" | "unknown" | "machine_end_beep" | "machine_end_silence" | "machine_end_other")[];
|
|
331
|
+
recordingEnabled?: boolean;
|
|
332
|
+
endCallFunctionEnabled?: boolean;
|
|
333
|
+
dialKeypadFunctionEnabled?: boolean;
|
|
334
|
+
hipaaEnabled?: boolean;
|
|
335
|
+
clientMessages?: ("status-update" | "speech-update" | "transcript" | "hang" | "function-call" | "tool-calls" | "metadata" | "conversation-update" | "model-output" | "voice-input")[];
|
|
336
|
+
serverMessages?: VapiServerMessage[];
|
|
337
|
+
silenceTimeoutSeconds?: number;
|
|
338
|
+
responseDelaySeconds?: number;
|
|
339
|
+
llmRequestDelaySeconds?: number;
|
|
340
|
+
numWordsToInterruptAssistant?: number;
|
|
341
|
+
maxDurationSeconds?: number;
|
|
342
|
+
backgroundSound?: "off" | "office";
|
|
343
|
+
backchannelingEnabled?: boolean;
|
|
344
|
+
name?: string;
|
|
345
|
+
firstMessage?: string;
|
|
346
|
+
voicemailDetectionEnabled?: boolean;
|
|
347
|
+
voicemailMessage?: string;
|
|
348
|
+
endCallMessage?: string;
|
|
349
|
+
endCallPhrases?: string[];
|
|
350
|
+
metadata?: any;
|
|
351
|
+
serverUrl?: string;
|
|
352
|
+
serverUrlSecret?: string;
|
|
353
|
+
summaryPrompt?: string;
|
|
354
|
+
id?: string;
|
|
355
|
+
orgId?: string;
|
|
356
|
+
createdAt?: string;
|
|
357
|
+
updatedAt?: string;
|
|
358
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface VF_MESSAGE_TEXT_PAYLOAD {
|
|
2
|
+
message: string;
|
|
3
|
+
}
|
|
4
|
+
export interface VF_MESSAGE_TEXT {
|
|
5
|
+
type: "text";
|
|
6
|
+
payload: {
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface AttachmentModel {
|
|
11
|
+
sizeKB: number;
|
|
12
|
+
filename: string;
|
|
13
|
+
url: string;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace VGMessageItem {
|
|
16
|
+
interface Text {
|
|
17
|
+
type: "text";
|
|
18
|
+
payload: {
|
|
19
|
+
message?: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
interface Image {
|
|
23
|
+
type: "image";
|
|
24
|
+
payload: {
|
|
25
|
+
image: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
interface EmailForm {
|
|
29
|
+
email: string;
|
|
30
|
+
message: string;
|
|
31
|
+
attachmentLinks?: AttachmentModel[];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const AudioAnimationOrb: (props: {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
colorPallet?: string[];
|
|
6
|
+
animationSensitivity?: number;
|
|
7
|
+
orbPlaceholder?: React.ReactNode;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
showOrb: boolean;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export default AudioAnimationOrb;
|