Voice Server - Discord voice integration server
Go to file
Cal Corum 5f7dd68bf6 Add urgent flag for higher volume playback
Added optional 'urgent' boolean field to POST /notify requests.
When urgent=true, audio is played at 1.5x volume with clipping
protection for critical messages.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 09:10:26 -06:00
app Add urgent flag for higher volume playback 2025-12-19 09:10:26 -06:00
tests Add urgent flag for higher volume playback 2025-12-19 09:10:26 -06:00
.env.example Initial commit: Voice server with Piper TTS 2025-12-19 00:18:12 -06:00
.gitignore Initial commit: Voice server with Piper TTS 2025-12-19 00:18:12 -06:00
OPERATIONS.md Add operations guide with management commands 2025-12-19 00:22:21 -06:00
PRD.md Initial commit: Voice server with Piper TTS 2025-12-19 00:18:12 -06:00
PROJECT_ROADMAP.json Initial commit: Voice server with Piper TTS 2025-12-19 00:18:12 -06:00
pyproject.toml Initial commit: Voice server with Piper TTS 2025-12-19 00:18:12 -06:00
README.md Initial commit: Voice server with Piper TTS 2025-12-19 00:18:12 -06:00
voice-server.service Fix default voice to use server configuration 2025-12-19 00:35:12 -06:00

Voice Server

Local HTTP service for text-to-speech playback using Piper TTS.

Features

  • HTTP POST endpoint for text-to-speech requests
  • High-quality neural TTS using Piper
  • Non-blocking audio playback with sounddevice
  • Async request queue for concurrent handling
  • Automatic OpenAPI documentation

Quick Start

# Install dependencies
uv pip install -e ".[dev]"

# Run server
uvicorn app.main:app --reload

# Test endpoint
curl -X POST http://localhost:8000/notify \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello, world!"}'

API Endpoints

  • POST /notify - Submit text for TTS playback
  • GET /health - Health check endpoint
  • GET /voices - List available voice models
  • GET /docs - OpenAPI documentation

Configuration

See .env.example for configuration options.

License

MIT