-
-
Notifications
You must be signed in to change notification settings - Fork 384
Stream PCM to audio analysis providers during background scan #3821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MarvinSchenkel
merged 32 commits into
music-assistant:dev
from
chrisuthe:feat/audio-analysis-streaming-bg-scan
May 4, 2026
Merged
Changes from 29 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
3c9559e
feat(audio_analysis): add post_analysis hook to AudioAnalysisProvider…
chrisuthe 5f85028
feat(audio_analysis): _finalize returns analysis; finalize wrapper fi…
chrisuthe 0c8601a
fix(audio_analysis): add exc_info to post_analysis warning and assert…
chrisuthe fa3d2a0
docs(audio_analysis): codify provider contract in base class docstring
chrisuthe fcf2d2a
feat(loudness_analysis): _finalize returns persisted analysis
chrisuthe f11556e
feat(loudness_analysis): implement post_analysis for ReplayGain tag-w…
chrisuthe ecadfef
feat(smart_fades): _finalize returns persisted analysis
chrisuthe fdab5de
refactor(audio_analysis): extract _distribute_chunk for shared chunk …
chrisuthe c9d09be
feat(audio_analysis): add config and constants for background streaming
chrisuthe 42a731f
feat(audio_analysis): add background streaming runner with per-track …
chrisuthe 6c8c4b5
feat(audio_analysis): rewrite background scan as decode-once-fan-out …
chrisuthe 3e8cfd9
refactor(audio_analysis): remove analyze_file from providers and dead…
chrisuthe d2cebfe
test(audio_analysis): update controller tests for new exception/evict…
chrisuthe 76a96de
refactor(audio_analysis): remove analyze_file default from base class
chrisuthe caea261
test(audio_analysis): end-to-end integration test for streaming backg…
chrisuthe 62861b0
fix(audio_analysis): use __getitem__ on sqlite3.Row in candidate-find…
chrisuthe 2a37efa
fix(audio_analysis): output PCM_S16LE from ffmpeg, not source format
chrisuthe aaa7a71
feat(audio_analysis): configurable scan window with start/end hour an…
chrisuthe 76388d9
Merge branch 'dev' into feat/audio-analysis-streaming-bg-scan
chrisuthe b2b7657
Merge branch 'dev' into feat/audio-analysis-streaming-bg-scan
chrisuthe 0f27dce
refactor(audio_analysis): hand bg scan scheduling to TasksController
chrisuthe d20e46a
Merge branch 'dev' into feat/audio-analysis-streaming-bg-scan
chrisuthe dcb5c1e
chore(audio_analysis): drop orphaned WAV fixture replaced by FLAC
chrisuthe c4a7ce6
feat(audio_analysis): bound bg scan with 4h budget, clean cancel + close
chrisuthe 1563e1b
style(audio_analysis): trim verbose docstrings and follow OHF format
chrisuthe 1e18985
refactor(audio_analysis): address PR review (#3821) cleanups
chrisuthe 52d2f8d
refactor(audio_analysis): use get_media_stream for bg scan decode
chrisuthe 0cfc72d
refactor(audio_analysis): use dataclasses.replace for pcm_format, tri…
chrisuthe 9158d79
PR Suggestions
chrisuthe ba64f20
refactor(audio_analysis): centralize set_audio_analysis in base final…
chrisuthe 0a5d19b
chore(audio_analysis): group smart fades log-level under audio_analys…
chrisuthe 74a4753
test(audio_analysis): mock set_audio_analysis as AsyncMock in base-cl…
chrisuthe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
422 changes: 271 additions & 151 deletions
422
music_assistant/controllers/streams/audio_analysis.py
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.