Repository navigation
Releases
Releases · wtrg/nova-voice-assistant
Nova Cyber Infinity Soul v2.1.0
Bản phát hành Nova v2.1.0: Tích hợp giao diện 3D Three.js Silver Infinity Soul & Soul Core, bộ đệm giọng nói VieNeu v3 Nano AI 'Xuân Tiên' (thanh lịch, trong trẻo, hoạt động 24/7 không cần giữ máy tính bật), và tối ưu hóa phản hồi âm thanh phần cứng Android.
v2.0.2
v2.0.1
v2.0.0
Nova Assistant v1.3.0 - Nova Reliability Fix V3
NOVA RELIABILITY FIX V3 SPECIFICATION & IMPLEMENTATION
Repository: wtrg/nova-voice-assistant
Baseline audited HEAD: f7df7a35a1ab5f34e07b6470be16aa47aa00fc8f
Invariants & Architecture Rules
- One Reminder, Exactly One Delivery:
- Android native runtime uses
AlarmManageras the exclusive authority. - Browser runtime uses local
setIntervalfallback only whenwindow.AndroidNovais absent. - When native alarm fires, the exact local reminder is marked delivered by canonical
reminder_id.
- Android native runtime uses
- Request-Scoped Audio Events:
MainActivity.dispatchAudioEvent()emits onlyonNovaAudioEvent(requestId, event)whenrequestIdis present.- Legacy global callbacks (
onNovaSpeechStarted,onNovaSpeechEnded,onNativeAudioFailed) are restricted to empty/no-request-ID calls only. - Stale completions and stale failures are rejected without affecting active turns.
- Interrupt Cancels Timers & Eliminates Fallback:
- Each audio request owns its lifecycle (
connectTimeout,cancelled). - Interrupt/cancel operations clear pending timeouts, mark requests cancelled, invoke native audio stop, and suppress error clip playback.
- Each audio request owns its lifecycle (
- Authoritative Alarm Session Lifetime:
NovaAlarmServiceloops alarm audio until explicitSTOP,SNOOZE, successfulCLAIMfrom WebView, or a 120s safety timeout.- Audio completion does not terminate the session prematurely.
- WebView claims session via
claimAlarmSession; stale sessions are rejected and do not cause duplicate triggers.
- Turn ID End-to-End Correlation:
- Client creates
turn_idand transmits it to/api/dialogueand/api/chat. - Server reuses client
turn_id(generating UUID only if omitted) and echoes it in responses. - Conversation state machine handles direct text input transition from
IDLE->WAITING_LLM.
- Client creates
- Backend Dependency Hardening:
python-multipartadded to runtime and dev dependencies to ensure robust FastAPIFile/Formsupport.
- Android CI Hardening:
- Workflow upgraded to Node 22 with
npx cap sync androidstep. - Zero
|| trueonlintDebugand unit tests.
- Workflow upgraded to Node 22 with
- Canonical Reminder Identity Persistence & Reboot Survival:
- Backend DB persists
reminder_idandscheduling_statuswith automatic non-destructive column migration. - Android persists
reminderId + "|||" + title + "|||" + timestampin SharedPreferences. NovaBootReceiverrestores native alarms using the identical canonical UUID and deterministic request codes.
- Backend DB persists
- Two-Phase Reminder Commit (Device ACK):
- Status transitions:
pending_device_ack->confirmed/device_schedule_failed. POST /api/reminders/{reminder_id}/device-ackupdates DB state; queries for active/due tasks exclude failed schedules.
- Status transitions:
- TTS Prefetch Ordering:
- Chunk N playback starts first; chunk N+1 prefetch is requested only after chunk N is actively playing.
- Cancelled turns immediately abort downstream prefetching.
- Feature Claims Accuracy:
- Background/screen-off hotword and default assistant are marked
DEVICE TEST REQUIREDand not claimed complete.
- Background/screen-off hotword and default assistant are marked
Nova Assistant v1.2.0 - Nova Reliability Fix V2
Nova Assistant v1.2.0 — Reliability Fix V2
Bản phát hành chính thức cập nhật toàn diện theo NOVA_RELIABILITY_FIX_PLAN_V2.md, khắc phục triệt để các lỗi rò rỉ âm thanh, đúp lịch nhắc việc, race condition trong đàm thoại liên tục, và bảo toàn 100% giọng Cuppy gốc.
🌟 Các cải tiến và Invariants cốt lõi:
- Reminder Single Source & Canonical Identity:
- 1 reminder -> 1 canonical
reminder_id(UUID) -> 1 native AlarmManager registration -> 1 notification. ReminderClient.jstrở thành đơn vị duy nhất ở Web Layer được phép kích hoạtscheduleNativeAlarm().addLocalTask()tuyệt đối không tự ý gọi Native Alarm tránh đúp chuông báo.- Hỗ trợ hủy/xóa lịch nhắc dựa trên cùng một định danh canonical ID.
- 1 reminder -> 1 canonical
- Native ACK & Honesty Invariant:
- Nova tuyệt đối không nói "đã đặt xong" trước khi nhận Native ACK (
ok === true) từ Android hardware. - Khi hệ điều hành từ chối quyền Báo thức chính xác (
exactGranted === false), Nova thông báo trung thực trên giao diện và giọng nói thay vì âm thầm hạ cấp.
- Nova tuyệt đối không nói "đã đặt xong" trước khi nhận Native ACK (
- Alarm Service Lifecycle & Safe Handoff:
- Hoàn thiện vòng đời
NovaAlarmService: kiểm soát wakelock chặt chẽ, dừng toàn bộ fallback ringtone khi hoàn tất, gọistopForeground(true)vàstopSelf(). - Cơ chế Native -> WebView handoff với Session ID và Claim ACK: chuông báo thức không bị tắt non khi WebView mở chậm.
- Hoàn thiện vòng đời
- Timezone & Atomic Scheduling:
- Chuẩn hóa múi giờ Việt Nam (
Asia/Ho_Chi_MinhUTC+7) chuyển đổi epoch chính xác trên mọi môi trường CI runner UTC. - Transactional atomic task creation: nếu một trong các task không thể parse thời gian, hệ thống hủy toàn bộ batch (inserts 0 tasks) và yêu cầu người dùng làm rõ.
- Chuẩn hóa múi giờ Việt Nam (
- Conversation State Machine & Correlation IDs:
- Tích hợp
ConversationStateMachinevàTurnControllervào vòng lặp runtime thực tế. - Mọi lượt đàm thoại được gắn
turn_idvàtts_request_id. - Bác bỏ hoàn toàn stale audio/speech callback từ các turn cũ khi người dùng chạm quả cầu ngắt lời (Interrupt) hoặc nói câu mới.
- Đảm bảo 100% khớp văn bản trả lời AI với âm thanh phát ra (0% mismatch).
- Tích hợp
- CI Hardening:
- Pinned dependencies trong
requirements-dev.txt. - Bổ sung GitHub Actions workflow cho Android CI (
lintDebug,testDebugUnitTest,assembleDebug).
- Pinned dependencies trong
📦 Tải về bộ cài đặt APK:
- File APK đính kèm:
Nova_Assistant.apk
Nova Assistant v1.1.0 - Comprehensive Reliability & Voice Fix
Nova Assistant v1.1.0 - Comprehensive Reliability & Architecture Release
Cải tiến nổi bật:
- Backend Contracts: Pydantic typed schemas, Correlation urn_id, bảo toàn danh sách tác vụ �ction.tasks, tự động yêu cầu làm rõ schedule_requires_clarification khi thời gian không hợp lệ, /health/voice diagnostic endpoint.
- Voice Parity (100%): Loại bỏ hoàn toàn cơ chế đối sánh xấp xỉ .includes(...), đảm bảo câu trả lời của AI 100% sinh động qua Neural Cuppy TTS, không còn phát nhầm câu chào/lỗi mạng.
- Turn State Machine: Quản lý phiên đàm thoại duy nhất, từ chối phản hồi cũ (stale callback rejection), xử lý ngắt lời lập tức (interrupt).
- Reminder with Native ACK: Xác nhận chính xác lịch nhắc nhở với hệ thống Android Exact Alarm trước khi phản hồi người dùng.
- Native Android Reliability: Dịch vụ nền trước NovaAlarmService với USAGE_ALARM độc lập, loại bỏ trùng lặp âm thanh giữa Receiver và WebView; Progressive Audio Streaming trực tiếp không cần tải trọn file trước khi phát.
Nova Assistant v1.0.0 - Bản phát hành chính thức
Phiên bản v1.0.0 chính thức của Nova Assistant
- 🎙️ Đàm thoại tự nhiên với thời gian ngắt câu 2.2 giây.
- 🚫 Loại bỏ hoàn toàn cơ chế Fallback sang Google Voice Dialog, 100% in-app recognition.
- 🔊 Giọng Cuppy gốc biểu cảm, tăng tốc độ phát 1.10x phản hồi linh hoạt.
- ⚡ Điều khiển mở ứng dụng: YouTube, Bản đồ, Camera, Báo thức, Zalo, Facebook, TikTok.
- 🧠 Tích hợp đa não bộ AI (Gemini 2.5 Flash & Groq LLaMA 3.3 70B).