Repository navigation
feat(Podcasts, Audiobooks, Radio): Overcast-inspired Smart Speed, smart playlists, live radio PCM voice boost, and cross-platform listening parity - #548
Open
vizmoe wants to merge 15 commits into
Conversation
Owner
|
This is too big to review and verify as one PR (131 files, +9.4k), and it now conflicts with main in
Two things for all of them:
|
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.
Closes #547
Summary
Upgrades Primuse's Podcast, Audiobook, and Live Radio listening spaces around shared cross-space DSP/policy modules (
PrimuseKit) and extends parity across iOS, macOS, CarPlay, Apple Watch, Apple TV, and Siri/Shortcuts.1. Shared Spoken-Word & Radio Audio Effects and Reliability
VoiceBoostActivationPolicy,SpokenWordAudioEffectsPolicy, andRemainingTimePolicy.3.0×(music remains capped at2.0×), introduces multi-tier Smart Speed intensity (Off/Mild/Standard/Strong) with live effective-rate estimation, and adds per-show / per-book / per-station overrides via a sharedSpokenWordAudioEffectsSheet.ServerSpokenWordProgressSyncCoordinator), opt-in shake-to-extend sleep timer (SleepTimerShakeExtender), spoken-word sleep-wake auto-rewind, and Apple TV fade-out & chapter sleep labels.2. Live Radio Pipeline & Resilience
FFmpegDecoderBridgestream reader +RadioFLACAudioDecoder), unlocking Voice Boost & EQ on live talk radio with a 1-tap per-station toggle on iOS, macOS, CarPlay, and Apple Watch.3. Podcast & Audiobook Listening Depth
PodcastSmartPlaylist/PodcastSmartPlaylistStore/PodcastSmartPlaylistsViewswith show scope (All/Include/Exclude), ordered Priority Shows, status filters, max duration cap, 4 sort orders (Newest/Oldest/Shortest/Longest), remaining duration summaries, and tombstone-aware CloudKVS merging across iOS, macOS, CarPlay, and Shortcuts.SongPlaybackRangeAvailability.supportsClipExport), adds bounded cross-space remembered podcast queue persistence (PodcastQueueMemoryStore+PodcastRememberedQueueBanner), unlocksSpokenWordBookDetailViewfor single-file M4B/M4A/MP3 audiobooks with offline embedded/generated chapter browsing and bookmarks (SpokenWordSingleFileChaptersSection), adds Markdown bookmark export, and adds a reusable cross-space listening stats strip (SpokenWordListeningStatsStrip).4. CarPlay, Apple Watch, Apple TV & Siri/Shortcuts Parity
CarPlaySceneDelegate+ListeningSpaces): Adds 1-tap Remembered Podcast Queue resume and custom Podcast Smart Playlists (with Play All) in CarPlay Podcasts, 1-tap Live Radio Voice Boost on CarPlay Now Playing, and Voice Boost / Smart Speed / Add Bookmark actions in CarPlay Now Playing More.WatchSessionBridge,WatchPlayerStore,PlaybackOptionsWatchView, and 16-localeWatchOfflineLocalizationwith playback speed cycle, Voice Boost (Podcasts / Audiobooks / Live Radio), Smart Speed cycle, and Add Bookmark; addsPrimusePodcastSmartIntentsfor playing Podcast Smart Playlists, resuming the remembered podcast queue, toggling Voice Boost, cycling Smart Speed, and adding spoken-word bookmarks.file-size.tsv(23 touched files, including removingWatchSessionBridge.swiftnow under 1,000 lines) andobservable-class-body.tsv(removingTingReaderProgressSyncCoordinator&RadioTitleHistoryStore, tighteningCompanionAssetDownloadFlow).Acceptance Criteria Coverage
Off/Mild/Standard/Strong),3.0×spoken-word rate, per-item overrides, and AirPlay bypass protection implemented and tested.ruby scripts/check-localizations.rb.--require-all --strict-baselines --rangeand--commits) verified with 0 errors, 0 warnings, and 0 skipped rules.Verification
Tested on top of
origin/main(ac6b49070), head revision876f99982:PrimuseKitunit testsswift test --package-path PrimuseKit --filter "PodcastSmartPlaylistTests|SpokenWordListeningStatsPolicyTests|PodcastShowNotes|SpokenWordAudioEffectsPolicyTests|SpokenWordSmartSpeed|CarPlayLayoutConfigurationTests"PrimuseMacTestsreliability testsxcodebuild test -scheme PrimuseMac -destination 'platform=macOS' -only-testing:PrimuseMacTests/ListeningSpacesReliabilityTests -only-testing:PrimuseMacTests/PodcastReliabilityTests CODE_SIGNING_ALLOWED=NOxcodebuild build-for-testing -scheme Primuse -destination 'generic/platform=iOS' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_ALLOWED=NO1174.9.2 < 1174.21.0)xcodebuild build -scheme PrimuseTV -destination 'generic/platform=tvOS' ONLY_ACTIVE_ARCH=YES CODE_SIGNING_ALLOWED=NOruby scripts/check-localizations.rb(all 16 locales)python3 -I scripts/gate/gate.py --root . --require-all --strict-baselines --range origin/main..HEAD(109 Swift files)python3 -I scripts/gate/gate.py --root . --commits origin/main..HEAD(15 signed commits)