Skip to content
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

got an unexpected keyword argument 'threshold_db' #2

Open
LoganLiu66 opened this issue Dec 20, 2024 · 1 comment
Open

got an unexpected keyword argument 'threshold_db' #2

LoganLiu66 opened this issue Dec 20, 2024 · 1 comment

Comments

@LoganLiu66
Copy link

When I test audio normalization, the following error occurs:
compand() got an unexpected keyword argument 'threshold_db'
and the relevant code is:

# 4. Dynamic range processing.
if params.compand_enabled:
    # Perform dynamic range compression first
    transformer.compand(
        attack_time=params.attack_time,
        decay_time=params.decay_time,
        soft_knee_db=params.soft_knee_db,
        threshold_db=-20,
        compression_ratio=params.compression_ratio
    )
@ScottishFold007
Copy link
Owner

When I test audio normalization, the following error occurs: compand() got an unexpected keyword argument 'threshold_db' and the relevant code is:

# 4. Dynamic range processing.
if params.compand_enabled:
    # Perform dynamic range compression first
    transformer.compand(
        attack_time=params.attack_time,
        decay_time=params.decay_time,
        soft_knee_db=params.soft_knee_db,
        threshold_db=-20,
        compression_ratio=params.compression_ratio
    )

The code and documentation have been updated, please give it another try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants