pyFLAC icon indicating copy to clipboard operation
pyFLAC copied to clipboard

only produce empty flac file

Open lixinghe1999 opened this issue 2 years ago • 1 comments

Hello everyone, I am using the code: pyflac example.wav -o pyflac.flac to get FLAC file. However, the output file is always empty and there is no warning or error. Can you give me some hints for it?

Also, I can successfully save FLAC file with soundfile, which partially validate my FLAC library is correct.

lixinghe1999 avatar Nov 05 '23 09:11 lixinghe1999

I guess I figure it out. FLAC, pyFLAC both only accept integer input. soundfile read can't automatically tackle it but will turn floating-point to 0.

lixinghe1999 avatar Nov 05 '23 11:11 lixinghe1999