MCPcopy Create free account
hub / github.com/Standard-Intelligence/hertz-dev / downsample

Method downsample

inference_client_webrtc.py:60–61  ·  view source on GitHub ↗
(self, audio_data: np.ndarray)

Source from the content-addressed store, hash-verified

58 return self._resample(audio_data, self.upsampler)
59
60 def downsample(self, audio_data: np.ndarray) -> np.ndarray:
61 return self._resample(audio_data, self.downsampler)
62
63 def from_s16_format(self, audio_data: np.ndarray, channels: int) -> np.ndarray:
64 if channels == 2:

Callers 1

Calls 1

_resampleMethod · 0.95

Tested by

no test coverage detected