diff --git a/examples/tutorials/audio_data_augmentation_tutorial.py b/examples/tutorials/audio_data_augmentation_tutorial.py index 3129d04392..61382c1671 100644 --- a/examples/tutorials/audio_data_augmentation_tutorial.py +++ b/examples/tutorials/audio_data_augmentation_tutorial.py @@ -350,7 +350,7 @@ def get_noise_sample(*, resample=None): snr_dbs = [20, 10, 3] noisy_speeches = [] for snr_db in snr_dbs: - snr = math.exp(snr_db / 10) + snr = 10 ** (snr_db / 20) scale = snr * noise_power / speech_power noisy_speeches.append((scale * speech + noise) / 2)