You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using NAudio to save a .wav file from my recording, I cannot extract the proper length of the recording when passing to GetAudioLength from the lib.
As far as I can tell I am creating the .wav file as it should be created and it plays back audio perfectly fine... Do I need to change these parameters to work with the library?
Rate, Bits, Channels?
I.E. waveIn.WaveFormat = new WaveFormat(44100, 16, 1);
var x_length = Tools.GetAudioLength(fufilePath);
So this problem seems to be exclusive to my .wav files however if I use the .wav file you provided it works fine. Is there a specifics to the wav file creation you could provide?
The text was updated successfully, but these errors were encountered:
Thanks for reporting the Issue.
If you read the README, you will see the purpose of this repository.
It is a wrapper library for World and the original code can be found here
If you look at the CheckHeader function called from this code, you will see that it only targets wav files with a specific header.
Make sure the wav file you created follows that format.
I do not use NAudio, so I cannot assist you in creating wav files when using NAudio.
If you are using linux or macos, you can check the format by using the file or xxd command.
Make sure that the wav file fulfills these conditions, except for the sampling rate.
Also make sure the wav file is not a toooooooooooooooooooooooo long file that exceeds the specifications.
When using NAudio to save a .wav file from my recording, I cannot extract the proper length of the recording when passing to GetAudioLength from the lib.
As far as I can tell I am creating the .wav file as it should be created and it plays back audio perfectly fine... Do I need to change these parameters to work with the library?
Rate, Bits, Channels?
I.E.
waveIn.WaveFormat = new WaveFormat(44100, 16, 1);
var x_length = Tools.GetAudioLength(fufilePath);
So this problem seems to be exclusive to my .wav files however if I use the .wav file you provided it works fine. Is there a specifics to the wav file creation you could provide?
The text was updated successfully, but these errors were encountered: