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

decode_wav_bytes needs a more robust wav head parsing #4

Open
sylvainbonnot opened this issue Jan 13, 2023 · 0 comments
Open

decode_wav_bytes needs a more robust wav head parsing #4

sylvainbonnot opened this issue Jan 13, 2023 · 0 comments

Comments

@sylvainbonnot
Copy link

When using recode in streamlitfront apps, the following function choked on some wav files (that could be read with sf.read):

file_to_bytes = Pipe(Path, methodcaller("read_bytes"))
wav_file_to_array = Pipe(
    file_to_bytes,
    decode_wav_bytes,
    itemgetter(0),
    np.array,
    np.transpose,
    itemgetter(0),
)

Link to the app: simple_ml_app_1

We should check the correctness of the function decode_wav_bytes.

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

No branches or pull requests

1 participant