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

Not able to read this wav file #18

Closed
kinord opened this issue Jan 13, 2015 · 3 comments
Closed

Not able to read this wav file #18

kinord opened this issue Jan 13, 2015 · 3 comments
Assignees

Comments

@kinord
Copy link

kinord commented Jan 13, 2015

I tried reading the attached wav file, but it did not work. I am able to read other .wav files. GitHub does not allow for attaching wav files, so I changed the extension to .png. You will need to rename the attached file back to .wav.

sample

I'm running Julia 0.3.5 in JuliaBox. I also had the same trouble running Julia 0.3.3 in linux.

Steps to reproduce:

julia> using WAV
julia> y = wavread("sample.wav")

Error message:

in read! at iostream.jl:196
in wavread at /home/juser/.julia/v0.3/WAV/src/WAV.jl:645
in wavread at /home/juser/.julia/v0.3/WAV/src/WAV.jl:668

I typed the above because copy/paste isn't working from JuliaBox.

I don't think that there is anything wrong with the file. I am able to read it in Adobe Audition and Audacity.

I verified that I can download the posted sample.png, rename to sample.wav and that it is still readable in Adobe Audition.

This .wav file is 16-bit mono at a sampling rate of 24kHz.

I appreciate the work you're doing here. I would greatly appreciate the resolution of this issue.

@kinord
Copy link
Author

kinord commented Jan 14, 2015

In my opinion, this problem should still be fixed, but there is a work around.

I am able to "clean" the .wav by running it through sox. If I do the following I can then get julia to load sample2.wav.

sox sample.wav sample2.wav

@dancasimiro dancasimiro self-assigned this Jan 16, 2015
@dancasimiro
Copy link
Owner

Do you know what is different about the file? 16 bit mono at 24 kHz should work. I will try to read the file later this weekend.

@kinord
Copy link
Author

kinord commented Feb 2, 2015

My apologies for the slow response. It appears to be working now. Thank you for the quick fix. I did use it right away. I just forgot to respond.

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

2 participants