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 build

2. API Key Not Working

Symptom: AI features fail with "401 Unauthorized" error

Solution:

  1. Verify API key in local.properties

  2. Check key format (should start with sk-or-v1-)

  3. Verify key is active on OpenRouter dashboard

  4. Rebuild project to refresh BuildConfig

  5. Check network connectivity

Debug:

3. Microphone Permission Denied

Symptom: Recording doesn't start, no error shown

Solution:

  1. Check Settings → Apps → Pebbl → Permissions

  2. Grant microphone permission manually

  3. Restart app

  4. For Android 6+, ensure runtime permission is requested

4. Network Timeout Errors

Symptom: "Network error: timeout" when generating drafts/questions

Solution:

  1. Increase timeout in OkHttpClient:

  2. Check internet connectivity

  3. Try switching between Wi-Fi and mobile data

  4. 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:

  1. Invalidate Caches: File → Invalidate Caches → Invalidate and Restart

  2. Update Compose compiler version

  3. Ensure preview composable has no dependencies:

7. Slow Transcription

Symptom: Vosk transcription lags behind speech

Solution:

  1. Use smaller model (already using small-en-us)

  2. Increase audio buffer size:

  3. Run recognition on background thread (already implemented)

  4. Close other apps to free memory

  5. Test on faster device

8. Draft Generation Takes Too Long

Symptom: Draft generation exceeds 60 seconds

Solution:

  1. Reduce word goal

  2. Shorten conversation (fewer exchanges)

  3. Switch to faster model:

  4. Check conversation isn't excessively long

  5. Reduce max_tokens:

Error Codes

Code
Meaning
Solution

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