Skip to content

Commit eb58434

Browse files
authored
voiceapi (#17)
* voiceapi * opus decoder write a demo app * handle connection properly * tidy * support google stt * specify alternative language codes * support audio file input as a stream * refactor action detector * beautify transcript * make client compatible with beautify * set markers for beautified segments * summary generation * fix action related transcript * tweak prompt * fix style * fix title * update client code to read envvars * fix partial transcription is missing * fix state * remove unused imports * update header color * upload audio to storage * mcp server * add talking tab in client app * adding context manually using mcp * use gpt-4.1 * add health endpoint * add prompt * add command * include llm api url in env * vapi metadata * user id wall * support userid on client app * rm unused vars * fix auth flag operation * fix client app conversation_id state management * rm tmp file
1 parent a0d03d6 commit eb58434

File tree

90 files changed

+24902
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+24902
-0
lines changed

backend/voiceapi/.env.example

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Server Configuration
2+
PORT=3000
3+
NODE_ENV=development
4+
5+
# Supabase Configuration
6+
SUPABASE_URL=your_supabase_url
7+
SUPABASE_ANON_KEY=your_supabase_anon_key
8+
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
9+
10+
# Speech-to-Text Configuration
11+
STT_PROVIDER=assemblyai # Options: 'assemblyai' or 'google-cloud'
12+
13+
# AssemblyAI Configuration
14+
ASSEMBLYAI_API_KEY=your_assemblyai_api_key
15+
16+
# Google Cloud Speech-to-Text Configuration
17+
GOOGLE_CLOUD_PROJECT_ID=your_google_cloud_project_id
18+
GOOGLE_CLOUD_KEY_FILENAME=path/to/your/service-account-key.json
19+
20+
# OpenAI Configuration (for action detection)
21+
OPENAI_API_KEY=your_openai_api_key
22+
23+
# API Configuration
24+
OTO_API_KEY_SECRET=your_secret_for_api_key_validation

backend/voiceapi/.gitignore

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
# Dependencies
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
7+
# Runtime data
8+
pids
9+
*.pid
10+
*.seed
11+
*.pid.lock
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage/
15+
*.lcov
16+
17+
# nyc test coverage
18+
.nyc_output
19+
20+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
21+
.grunt
22+
23+
# Bower dependency directory (https://bower.io/)
24+
bower_components
25+
26+
# node-waf configuration
27+
.lock-wscript
28+
29+
# Compiled binary addons (https://nodejs.org/api/addons.html)
30+
build/Release
31+
32+
# Dependency directories
33+
node_modules/
34+
jspm_packages/
35+
36+
# TypeScript v1 declaration files
37+
typings/
38+
39+
# TypeScript cache
40+
*.tsbuildinfo
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Microbundle cache
49+
.rpt2_cache/
50+
.rts2_cache_cjs/
51+
.rts2_cache_es/
52+
.rts2_cache_umd/
53+
54+
# Optional REPL history
55+
.node_repl_history
56+
57+
# Output of 'npm pack'
58+
*.tgz
59+
60+
# Yarn Integrity file
61+
.yarn-integrity
62+
63+
# dotenv environment variables file
64+
.env
65+
.env.test
66+
.env.production
67+
.env.local
68+
69+
# parcel-bundler cache (https://parceljs.org/)
70+
.cache
71+
.parcel-cache
72+
73+
# Next.js build output
74+
.next
75+
76+
# Nuxt.js build / generate output
77+
.nuxt
78+
dist
79+
80+
# Gatsby files
81+
.cache/
82+
public
83+
84+
# Storybook build outputs
85+
.out
86+
.storybook-out
87+
88+
# Temporary folders
89+
tmp/
90+
temp/
91+
92+
# Logs
93+
logs
94+
*.log
95+
96+
# Runtime data
97+
pids
98+
*.pid
99+
*.seed
100+
*.pid.lock
101+
102+
# Directory for instrumented libs generated by jscoverage/JSCover
103+
lib-cov
104+
105+
# Coverage directory used by tools like istanbul
106+
coverage
107+
*.lcov
108+
109+
# Compiled TypeScript files
110+
dist/
111+
build/
112+
113+
# IDE files
114+
.vscode/
115+
.idea/
116+
*.swp
117+
*.swo
118+
*~
119+
120+
# OS generated files
121+
.DS_Store
122+
.DS_Store?
123+
._*
124+
.Spotlight-V100
125+
.Trashes
126+
ehthumbs.db
127+
Thumbs.db
128+
129+
# Audio files (if storing temporarily)
130+
*.wav
131+
*.mp3
132+
*.m4a
133+
*.aac
134+
*.ogg
135+
*.flac
136+
137+
# Database files
138+
*.db
139+
*.sqlite
140+
*.sqlite3
141+
142+
# Test files
143+
test-results/
144+
coverage/
145+
146+
# Documentation build
147+
docs/build/

0 commit comments

Comments
 (0)