Closed lostanlen closed 6 years ago
@justinsalamon maybe this can be solved with delete=False
and deleting manually after use? do you want me to try that?
The problem appears to be not with self-concatenation, but with temporary files on windows, re-opening #20 and closing this one out.
Elizabeth Mendoza (@Elizabeth-12324) uses scaper v0.2.0 and has succeeded in using scaper for pasting long sounds on her Windows 10 machine. However, short sounds (below 500 ms) cause a "Permission denied" error while calling
sc.generate
. See the full backtrace below my signature.As you can see, the line at fault is
cbn.build([filepath] * n_tiles, concat_file.name, 'concatenate')
inget_integrated_lufs
This line appeared in v0.2.0 in PR #28, which closed issues #13 and #18. It seems that this PR brought a bug on Windows.
@Elizabeth-12324 and myself looked at the page of SoX known bugs: http://sox.sourceforge.net/Docs/Bugs and this mailing list thread: https://sourceforge.net/p/sox/mailman/message/20864618/
IIRC, @rabitt discouraged using the same inputfile and outpufile in pysox 27 https://github.com/rabitt/pysox/issues/27
I don't know if there is an easy and portable fix for this. Could it be that the concatenated file has the same name than the original, and that avoiding conflating the two names make the LUFS concatenation Windows-friendly?
Vincent