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

Bug while reading .wav file #65

Open
ISilviu opened this issue Sep 13, 2019 · 2 comments
Open

Bug while reading .wav file #65

ISilviu opened this issue Sep 13, 2019 · 2 comments

Comments

@ISilviu
Copy link

ISilviu commented Sep 13, 2019

Hi, I'm using the Aquila library for a personal project and I was trying to load some .wav files in order to feed them to a neural network.

The problem is that the Aquila::WaveFile constructor takes a very long time and it doesn't read the .wav file properly. More explicitly, Aquila::WaveFile yields a total number of 1283469498 samples, while, if we read the same file with another library, that one yields a total number of 19584 samples.
Certainly, something went wrong.

This link contains the .wav file.

I'm using Visual Studio 2017 and Windows 10 x64.

Could you help me solve this problem?

Thanks in advance.

@cailtin
Copy link

cailtin commented Feb 28, 2021

I going to check this, I been loading wav files with no issues. I got the file so let me see what is the problem.

Thanks

@cailtin
Copy link

cailtin commented Feb 28, 2021

RIFF format file, can you transform this to a plain PCM file (pcm) ?

sox input.wav [-b BITS] [-r SAMPLERATE] [-c #CHANELS] -t raw output.pcm

The issue is that this file is a windows format file and this library is expecting a PCM formatted (yes this has PCM but in blocks and it has its own structure, which is not handled by this library)

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