Repository navigation
FIX Include settings in audio echo, speed, volume and white-noise converter identifiers - #3243
Merged
Roman Lutz (romanlutz) merged 2 commits intoOct 17, 2026
Conversation
…nverter identifiers These four converters did not override _build_identifier(), so every configuration of a class shared one hash and default registry name. Include output_format and the effect parameters, as AudioFrequencyConverter already does. Fixes microsoft#3242 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Roman Lutz (romanlutz)
approved these changes
Oct 17, 2026
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.
Description
Fixes #3242.
AudioEchoConverter,AudioSpeedConverter,AudioVolumeConverterandAudioWhiteNoiseConverterdid not override_build_identifier(). Their identifiers held only the supported input and output types, so all configurations of one class had the same hash and default registry name. For example,AudioSpeedConverter(speed_factor=0.5)andAudioSpeedConverter(speed_factor=2.0)collided, and registering the second one raisedValueError: Instance 'AudioSpeedConverter::4128abe5' already exists.Each converter now adds
output_formatand its effect parameters to the identifier, the same wayAudioFrequencyConverterdoes:AudioEchoConverter:delay,decayAudioSpeedConverter:speed_factorAudioVolumeConverter:volume_factorAudioWhiteNoiseConverter:noise_scaleConversion behavior is unchanged. The default-configuration hashes of these four converters change once, because they now include their parameters. Nothing in the repository pins or registers these hashes: the default converter initializer does not register these converters, and no test pins them.
Tests and Documentation
ConverterRegistry, and that equal settings keep the same hash. Onmain, 9 of the 13 new tests fail. With this change, all of them pass.pytest tests/unit/converter/test_audio_*_converter.py tests/unit/converter/test_converter.py tests/unit/converter/test_seeded_converter_determinism.py tests/unit/registry tests/unit/backend/test_converter_service.py: 1166 passed, 6 skipped.ruff format,ruff checkandty checkpass on the changed files, including the tests.git diff --checkis clean.doc/code/converters/2_audio_converters.pydoes not use identifiers.🤖 Generated with Claude Code