Skip to content
Voco app iconVoco app iconVoco
GitHub
Native Android • Google Cast • Offline-First

Automated Azan on your Google Nest, every single prayer.

Turn any dedicated Android device into a 24/7 home Azan appliance. Voco caches 60 days of Kemenag RI & Aladhan prayer times offline, streams local MP3 audio over Wi-Fi LAN, and automatically restores your speaker's volume afterward.

Offline Cache
60 Days
Audio Delivery
Local LAN
Min Android
API 26+
17:15
Wi-Fi
Voco
Kota Jakarta SelatanNext: Maghrib

Starts in

00:42:18

Today at

17:58

MyQuran (Kemenag RI) • Offline cache active

24/7 ReadyLAN 192.168.1.42

Living Room Nest Audio

Azan volume 75% • Auto-restores after Azan

Change Speaker
Prayer ScheduleInteractive preview
  • Subuh (Fajr)
    04:08
  • Dzuhur (Dhuhr)
    11:44
  • Ashar (Asr)
    15:07+2m
  • MaghribNEXT
    17:58
  • Isya (Isha)
    19:12

Capabilities

Engineered for unattended, everyday reliability

Every layer of Voco is built so a dedicated home Android device can quietly handle five daily prayers over your local Wi-Fi without cloud relays or manual intervention.

Offline-First Engine01

60-day local schedule cache

Fetches official Indonesian schedules via MyQuran API v2 (Kemenag RI) with Aladhan API fallback for global coordinates, then caches the current and next month in Room so Azan never misses even when the internet drops.

  • Per-prayer enable toggles for Subuh, Dzuhur, Ashar, Maghrib, and Isya
  • Fine-grained minute offsets from -15 to +15 min per prayer
  • Daily midnight WorkManager sync keeps the 60-day cache topped up
Zero-Cloud LAN Streaming02

Automated Google Cast over Wi-Fi

Discovers Google Nest, Google Home, and Chromecast speakers or speaker groups over local mDNS via AndroidX MediaRouter and remembers your target routeId for unattended reconnection before every prayer.

  • Embedded Ktor CIO local HTTP server with PartialContent (HTTP Range)
  • Built-in regular & Fajr MP3 recitations, or custom local MP3s via SAF
  • Instant 10-second Test Cast button right on the dashboard
Smart Volume Automation03

Automatic volume restoration

Never leave your living room speaker blasting after prayer. Voco captures your Cast speaker's current volume and mute state, raises it to your Azan level, and restores the exact previous state when playback completes.

  • Configurable Azan playback volume from 10% to 100%
  • Monitors MediaStatus.IDLE_REASON_FINISHED before restoring
  • Works cleanly whether the speaker was muted or playing softly
Always-On Reliability04

Built to run 24/7 on a home device

Designed for a spare Android phone or tablet plugged in at home. Voco combines Doze-safe exact alarms, a mediaPlayback Foreground Service with partial WakeLock, and automatic reboot recovery.

  • AlarmManager.setExactAndAllowWhileIdle() for exact-second triggers
  • Recovers automatically after reboot, app updates, or timezone changes
  • Built-in Device Health banner checks alarms, battery, notifications & LAN

Architecture

How a prayer triggers over your local Wi-Fi

No cloud server in the middle. Everything runs locally between your always-on Android device and your Google Cast speaker on the same LAN.

  1. 01AlarmManager + WakeLock

    Exact Doze-Safe Trigger

    AlarmManager wakes Voco at the exact prayer second—even when the Android device is deep in Doze mode—starting a mediaPlayback Foreground Service with a partial WakeLock.

  2. 02Ktor CIO + Google Cast

    Local LAN Audio Stream

    Voco spins up an embedded Ktor CIO HTTP server with Range support on your home Wi-Fi, reconnects to your saved Google Nest or Home speaker, and streams your built-in or custom MP3.

  3. 03CastAzanController

    Smart Volume Restore

    Before audio starts, Voco records the speaker's volume and mute state, plays Azan at your configured volume, waits for IDLE_REASON_FINISHED, and restores the original level.

Modern Native Android Stack

Clean Architecture + MVVM • Android 8.0+ (API 26+) • Open Source

Kotlin 2.2Jetpack ComposeMaterial 3Room 2.8DataStoreKtor CIO 3.6Google Cast SDKDagger HiltWorkManagerRetrofit 3

Get Started

Always-on device checklist

Install Voco on a dedicated Android phone or tablet (Android 8.0+ / API 26), then clear the four items in the built-in Device Health banner until it reads 24/7 Ready.

  1. 1

    Grant Alarms & Reminders

    Allows SCHEDULE_EXACT_ALARM so prayer triggers fire on the exact second even in Android Doze mode.

  2. 2

    Allow Notifications

    Enables POST_NOTIFICATIONS for the active mediaPlayback Foreground Service status while casting.

  3. 3

    Disable Battery Optimization

    Prevents Android from throttling background wakeups on your dedicated always-on home device.

  4. 4

    Join the Same Home Wi-Fi LAN

    Connect both the Android device and your Google Nest / Home speaker to the same Wi-Fi network.

Build from source (JDK 17)
dev.adityacprtm.voco
# 1. Clone the repository
git clone https://github.com/Adityacprtm/voco.git
cd voco

# 2. Run unit tests & build Debug APK
./gradlew testDebugUnitTest
./gradlew assembleDebug

Custom Azan Recitations

Voco ships with placeholder MP3s so it compiles out of the box. Swap in your favorite regular and Fajr MP3 recitations anytime under Voco Settings → Azan Audio Assets.

FAQ

Common questions

Does Voco need an active internet connection for Azan to play?

No. Voco caches 60 days (the current and next month) of prayer schedules locally in Room and serves Azan MP3s from an embedded Ktor CIO server over your local Wi-Fi. As long as your home router is on, Azan continues uninterrupted even if your ISP goes down.

Which smart speakers are supported?

Any speaker or speaker group that supports Google Cast—including Google Nest Mini, Nest Audio, Nest Hub, Google Home, and Chromecast-enabled audio receivers—on the same Wi-Fi LAN.

Can I use my own Azan MP3 recordings?

Yes. You can pick separate custom local MP3 files for Regular Azan (Dzuhur, Ashar, Maghrib, Isya) and Subuh / Fajr Azan directly from Voco Settings using Android's Storage Access Framework, or bundle them into res/raw before building.

What happens if my Android device restarts or enters Doze mode?

Voco schedules alarms using AlarmManager.setExactAndAllowWhileIdle() to bypass Doze, and listens to BOOT_COMPLETED, MY_PACKAGE_REPLACED, TIME_SET, and TIMEZONE_CHANGED broadcasts to automatically reschedule alarms after reboots or clock changes.

Does Voco work outside Indonesia?

Yes. Voco defaults to MyQuran API v2 (Kemenag RI) with full Indonesian city and kabupaten search, and automatically falls back to the Aladhan API for global coordinates.