adobe-research / DeepAFx-ST

DeepAFx-ST - Style transfer of audio effects with differentiable signal processing. Please see https://csteinmetz1.github.io/DeepAFx-ST/
Other
369 stars 47 forks source link

How can I process an entire audio file? #22

Closed CyberLykan closed 2 years ago

CyberLykan commented 2 years ago

I want to process an entire audio file, but the code currently uses only five seconds from the input and reference.

When I comment these out in process.py, it returns the processed file, but the audio seems to appear more than once in the output. x_24000 = x_24000[0:1, : 24000 * 5] r_24000 = r_24000[0:1, : 24000 * 5]

CyberLykan commented 2 years ago

I might have found something. Change these two lines to the following: x_24000 = x_24000[0:1, : x_24000.shape[-1] // 2] r_24000 = r_24000[0:1, : r_24000.shape[-1] // 2]