book-reader/app/src/main/java/com/aryan/reader/tts
Aryan d6837aa4df
General fixes (#19)
* fix OOM crash by refactoring EpubImage to use lazy loading

- Removed raw image ByteArray from EpubImage data class to prevent OutOfMemoryErrors on large books.
- Updated EpubParser and MobiParser to only store image paths in the EpubBook object.
- Images are now loaded on-demand from disk via file URIs in WebView and Coil, reducing initial heap allocation.

* fix(tts): resolve OutOfMemoryError by removing large strings from state bundle

- Removed 'currentText' from the TtsState bundle inside MediaSession custom layout.
- Updated TtsController to retrieve the current text chunk via MediaItem metadata.
- This prevents heap exhaustion caused by high-frequency serialization of large text strings during word tracking and polling updates.
2026-03-01 23:24:26 +05:30
..
BaseTtsSynthesizer.kt Folder import\sync rework (#18) 2026-03-01 22:57:53 +05:30
TtsController.kt General fixes (#19) 2026-03-01 23:24:26 +05:30
TtsPlaybackManager.kt General fixes (#19) 2026-03-01 23:24:26 +05:30
TtsService.kt Update readme (#3) 2026-02-25 21:30:28 +05:30
TtsUtils.kt Update readme (#3) 2026-02-25 21:30:28 +05:30