Files
agent-ui/server/index.ts
josedario87 638e6ac8e0 feat: Add Whisper GPU speech-to-text with progressive transcription
- Add faster-whisper Python server for GPU-accelerated transcription
- Support dual mode: Web Speech API or Whisper GPU (toggleable)
- Progressive transcription every 3 seconds while recording
- Separate terminal server process (stable during hot-reload)
- Add Ctrl+V paste and Ctrl+C copy support in FloatingTerminal
- Add MCP tools: whisper_start, whisper_stop, whisper_toggle, whisper_status
- Update package.json with separate api/terminal/frontend processes
2026-02-13 23:47:52 -06:00

21 lines
494 B
TypeScript

import { PORT_HTTP, WORKING_DIR } from './config'
import { initDatabase } from './db'
import { handleRequest } from './routes'
// Initialize database
initDatabase()
// Start HTTP API server
Bun.serve({
port: PORT_HTTP,
fetch: handleRequest
})
// Startup summary
console.log('')
console.log('='.repeat(50))
console.log('Agent UI API Server (hot-reload enabled)')
console.log(` API: http://localhost:${PORT_HTTP}`)
console.log(` Working Dir: ${WORKING_DIR}`)
console.log('='.repeat(50))