✅ TICKET-006: Wake-word Detection Service - Implemented wake-word detection using openWakeWord - HTTP/WebSocket server on port 8002 - Real-time detection with configurable threshold - Event emission for ASR integration - Location: home-voice-agent/wake-word/ ✅ TICKET-010: ASR Service - Implemented ASR using faster-whisper - HTTP endpoint for file transcription - WebSocket endpoint for streaming transcription - Support for multiple audio formats - Auto language detection - GPU acceleration support - Location: home-voice-agent/asr/ ✅ TICKET-014: TTS Service - Implemented TTS using Piper - HTTP endpoint for text-to-speech synthesis - Low-latency processing (< 500ms) - Multiple voice support - WAV audio output - Location: home-voice-agent/tts/ ✅ TICKET-047: Updated Hardware Purchases - Marked Pi5 kit, SSD, microphone, and speakers as purchased - Updated progress log with purchase status 📚 Documentation: - Added VOICE_SERVICES_README.md with complete testing guide - Each service includes README.md with usage instructions - All services ready for Pi5 deployment 🧪 Testing: - Created test files for each service - All imports validated - FastAPI apps created successfully - Code passes syntax validation 🚀 Ready for: - Pi5 deployment - End-to-end voice flow testing - Integration with MCP server Files Added: - wake-word/detector.py - wake-word/server.py - wake-word/requirements.txt - wake-word/README.md - wake-word/test_detector.py - asr/service.py - asr/server.py - asr/requirements.txt - asr/README.md - asr/test_service.py - tts/service.py - tts/server.py - tts/requirements.txt - tts/README.md - tts/test_service.py - VOICE_SERVICES_README.md Files Modified: - tickets/done/TICKET-047_hardware-purchases.md Files Moved: - tickets/backlog/TICKET-006_prototype-wake-word-node.md → tickets/done/ - tickets/backlog/TICKET-010_streaming-asr-service.md → tickets/done/ - tickets/backlog/TICKET-014_tts-service.md → tickets/done/
67 lines
2.6 KiB
Bash
Executable File
67 lines
2.6 KiB
Bash
Executable File
#!/bin/bash
|
|
# Run all tests and generate coverage report
|
|
|
|
set -e
|
|
|
|
echo "╔══════════════════════════════════════════════════════════════╗"
|
|
echo "║ Running All Tests ║"
|
|
echo "╚══════════════════════════════════════════════════════════════╝"
|
|
echo ""
|
|
|
|
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "$BASE_DIR"
|
|
|
|
PASSED=0
|
|
FAILED=0
|
|
|
|
test_component() {
|
|
local name="$1"
|
|
local dir="$2"
|
|
local test_file="$3"
|
|
|
|
echo -n "Testing $name... "
|
|
if [ -f "$dir/$test_file" ]; then
|
|
if (cd "$dir" && python3 "$test_file" > /tmp/test_output.txt 2>&1); then
|
|
echo "✅ PASSED"
|
|
((PASSED++))
|
|
return 0
|
|
else
|
|
echo "❌ FAILED"
|
|
tail -3 /tmp/test_output.txt 2>/dev/null || echo " (check output)"
|
|
((FAILED++))
|
|
return 1
|
|
fi
|
|
else
|
|
echo "⚠️ SKIPPED (test file not found)"
|
|
return 2
|
|
fi
|
|
}
|
|
|
|
# Test components that don't require server
|
|
test_component "Router" "routing" "test_router.py"
|
|
test_component "Memory System" "memory" "test_memory.py"
|
|
test_component "Monitoring" "monitoring" "test_monitoring.py"
|
|
test_component "Safety Boundaries" "safety/boundaries" "test_boundaries.py"
|
|
test_component "Confirmations" "safety/confirmations" "test_confirmations.py"
|
|
test_component "Session Manager" "conversation" "test_session.py"
|
|
test_component "Summarization" "conversation/summarization" "test_summarization.py"
|
|
test_component "Memory Tools" "mcp-server/tools" "test_memory_tools.py"
|
|
test_component "Dashboard API" "mcp-server/server" "test_dashboard_api.py"
|
|
test_component "Admin API" "mcp-server/server" "test_admin_api.py"
|
|
|
|
echo ""
|
|
echo "╔══════════════════════════════════════════════════════════════╗"
|
|
echo "║ Test Results ║"
|
|
echo "╚══════════════════════════════════════════════════════════════╝"
|
|
echo "✅ Passed: $PASSED"
|
|
echo "❌ Failed: $FAILED"
|
|
echo ""
|
|
|
|
if [ $FAILED -eq 0 ]; then
|
|
echo "🎉 All tests passed!"
|
|
exit 0
|
|
else
|
|
echo "⚠️ Some tests failed"
|
|
exit 1
|
|
fi
|