Conversation
Persist deterministic, size-bounded sentence anchors and expose dedicated audio and timing cache identities. Preserve sentence caches across rechunking while isolating changes to voice, language, model, and synthesis steps.
Route sentence-aligned starts through stable low-latency cache units and prefetch subsequent speech for continuous playback. Preserve exact mid-sentence behavior through the existing fallback while exposing sentence cache hits and misses in diagnostics.
Serialize ONNX inference and let foreground playback take priority over prefetching and audiobook rendering. Invalidate stale requests and rebuild failed cached audio once before presenting a manual retry.
- Plan punctuation-aware cadence and stream trailing silence through native AAC encoding without duplicating waveforms - Version affected caches, expose dev diagnostics, and shorten playback and shared-type imports through their barrels
- Add configurable semantic tone planning with natural pacing and pause profiles. - Reduce lower-end device pressure with adaptive prefetching, O(1) queueing, and a five-step synthesis floor.
- Replace cross-module subpath imports with the shortest public barrel paths. - Export shared engine, PDF, and utility helpers required by consumers and tests.
- Move playback-owned hooks into the playback module - Add an internal core barrel while preserving the short public playback API - Remove the playback-to-hooks-to-playback dependency cycle
- Run barrel-based tests through the Expo-aware Jest environment - Isolate native ONNX, audio, codec, and device modules during unit tests - Require all unit tests to pass before CI typechecks and builds the APK
Serialize engine loading, swapping, and release around active inference. Honor low-memory warmup behavior and prevent cache metadata failures from interrupting playback.
- Move voice resolution and clip synthesis behind a profile-scoped playback service - Preserve request cancellation and engine priority with focused unit coverage
- Move audio mode, lock-screen metadata, artwork, and rate synchronization into a dedicated playback hook - Centralize notification teardown and cover metadata and rate policies with unit tests
- Keep usePlayback as a small facade over preparation, player control, adaptive prefetch, recovery, media-session, and position modules - Add focused coverage for cache decisions, sequencing, retries, seeking, and document position mapping
- Move reader rendering, overlays, and developer actions into reusable components - Centralize benchmark orchestration and document deletion behind shared services
- Move shared contracts into cohesive type files and expose them through public barrels. - Remove redundant comments while preserving explanations for playback, caching, algorithms, and platform constraints.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.