Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only produce empty flac file #24

Closed
lixinghe1999 opened this issue Nov 5, 2023 · 1 comment · Fixed by #26
Closed

only produce empty flac file #24

lixinghe1999 opened this issue Nov 5, 2023 · 1 comment · Fixed by #26

Comments

@lixinghe1999
Copy link

lixinghe1999 commented Nov 5, 2023

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant