From 269f070051551bc6ad59462bc7027a3645501b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Wed, 22 May 2024 14:09:24 -0700 Subject: [PATCH] audio: no need for compute_rms --- src/pipecat/utils/audio.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pipecat/utils/audio.py b/src/pipecat/utils/audio.py index bafccc825..3c1118fc5 100644 --- a/src/pipecat/utils/audio.py +++ b/src/pipecat/utils/audio.py @@ -8,10 +8,6 @@ import numpy as np import pyloudnorm as pyln -def compute_rms(audio: np.ndarray): - return np.sqrt(np.mean(audio**2)) - - def normalize_value(value, min_value, max_value): normalized = (value - min_value) / (max_value - min_value) normalized_clamped = max(0, min(1, normalized))