MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / remove_dc

Function remove_dc

examples/csv2wav/csv2wav.py:108–110  ·  view source on GitHub ↗
(audio)

Source from the content-addressed store, hash-verified

106
107
108def remove_dc(audio):
109 mean = np.mean(audio, axis=0, keepdims=True)
110 return audio - mean
111
112
113def normalize_per_channel(audio, headroom_db=0.5):

Callers 1

write_wavFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected