Common Issues
1. Vosk Model Not Found
Symptom: App crashes when starting voice recording with error "Model not found"
Solution:
# Check if model exists in assets
ls app/src/main/assets/vosk-model-small-en-us-0.15/
# If missing, download model:
wget https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip
unzip vosk-model-small-en-us-0.15.zip
mv vosk-model-small-en-us-0.15 app/src/main/assets/
# Rebuild project
./gradlew clean build2. API Key Not Working
Symptom: AI features fail with "401 Unauthorized" error
Solution:
Verify API key in
local.propertiesCheck key format (should start with
sk-or-v1-)Verify key is active on OpenRouter dashboard
Rebuild project to refresh BuildConfig
Check network connectivity
Debug:
3. Microphone Permission Denied
Symptom: Recording doesn't start, no error shown
Solution:
Check Settings → Apps → Pebbl → Permissions
Grant microphone permission manually
Restart app
For Android 6+, ensure runtime permission is requested
4. Network Timeout Errors
Symptom: "Network error: timeout" when generating drafts/questions
Solution:
Increase timeout in OkHttpClient:
Check internet connectivity
Try switching between Wi-Fi and mobile data
Verify firewall isn't blocking OpenRouter
5. Room Database Migration Failure
Symptom: App crashes on launch with "Migration path not found"
Solution:
For production: Implement proper migrations:
6. Compose Preview Not Rendering
Symptom: Preview shows "Rendering Problems"
Solution:
Invalidate Caches: File → Invalidate Caches → Invalidate and Restart
Update Compose compiler version
Ensure preview composable has no dependencies:
7. Slow Transcription
Symptom: Vosk transcription lags behind speech
Solution:
Use smaller model (already using
small-en-us)Increase audio buffer size:
Run recognition on background thread (already implemented)
Close other apps to free memory
Test on faster device
8. Draft Generation Takes Too Long
Symptom: Draft generation exceeds 60 seconds
Solution:
Reduce word goal
Shorten conversation (fewer exchanges)
Switch to faster model:
Check conversation isn't excessively long
Reduce max_tokens:
Error Codes
401
Unauthorized
Check API key
429
Rate limit exceeded
Wait and retry, upgrade OpenRouter plan
500
Server error
Retry after a few seconds
503
Service unavailable
OpenRouter maintenance, try later
Network timeout
No response
Check internet, increase timeout
Model not found
Vosk initialization failed
Re-extract model from assets
Logging
Enable debug logging:
View logs:
Last updated
