def add_audio_effects():
......
with AudioFile(audio_path) as f:
with AudioFile(output_path, 'w', f.samplerate, 2) as o:
# Read one second of audio at a time, until the file is empty:
while f.tell() < f.frames:
chunk = f.read(int(f.samplerate))
chunk = np.tile(chunk, (2, 1)).T
effected = board(chunk, f.samplerate, reset=False)
o.write(effected)
......