We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In speech.Exeriment.adjust_levels, it should be possible to adjust the levels correctly even if the signals are binaural. A way to do this is simply:
speech.Exeriment.adjust_levels
average_level = np.mean(utils.dbspl(signal))
Average level should therefore always be a single number, independently of if signal has one, two, or more channels.
signal
The text was updated successfully, but these errors were encountered:
Something like this should do the trick:
mean_level = np.mean(utils.dbspl(signal)) adjusted_signal = target * 10 ** ((target_level - mean_level) / 20)
Sorry, something went wrong.
No branches or pull requests
In
speech.Exeriment.adjust_levels
, it should be possible to adjust the levels correctly even if the signals are binaural. A way to do this is simply:Average level should therefore always be a single number, independently of if
signal
has one, two, or more channels.The text was updated successfully, but these errors were encountered: