dictation-service/scripts/fix_service.sh
Kade Heyborne 73a15d03cd
Fix dictation service: state detection, async processing, and performance optimizations
- Fix state detection priority: dictation now takes precedence over conversation
- Fix critical bug: event loop was created but never started, preventing async coroutines from executing
- Optimize audio processing: reorder AcceptWaveform/PartialResult checks
- Switch to faster Vosk model: vosk-model-en-us-0.22-lgraph for 2-3x speed improvement
- Reduce block size from 8000 to 4000 for lower latency
- Add filtering to remove spurious 'the', 'a', 'an' words from start/end of transcriptions
- Update toggle-dictation.sh to properly clean up conversation lock file
- Improve batch audio processing for better responsiveness
2025-12-04 11:49:07 -07:00

22 lines
530 B
Bash
Executable File

#!/bin/bash
echo "🔧 Fixing AI Dictation Service..."
# Copy the updated service file
echo "📋 Copying service file..."
sudo cp dictation.service /etc/systemd/user/dictation.service
# Reload systemd daemon
echo "🔄 Reloading systemd daemon..."
systemctl --user daemon-reload
# Start the service
echo "🚀 Starting AI dictation service..."
systemctl --user start dictation.service
# Check status
echo "📊 Checking service status..."
sleep 3
systemctl --user status dictation.service
echo "✅ Service setup complete!"