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

preprocessing data #18

Open
zhang-jian opened this issue May 11, 2017 · 1 comment
Open

preprocessing data #18

zhang-jian opened this issue May 11, 2017 · 1 comment

Comments

@zhang-jian
Copy link

Hi,
I think this line should be:
os.system('ffmpeg -ss {} -t 8 -i {}/preprocess_all_audio.wav -ac 1 -ab 16k -ar 16000 {}/p{}.flac'.format(i*8, OUTPUT_DIR, OUTPUT_DIR, i))

Otherwise, you only use the first (int(length)//8 - 1) + 8 seconds of your training data?

@liamgilbey
Copy link

@zhang-jian I think you are right - a lot of the training data is lost this way.
Another option might be changing this line to:
for i in xrange(int(length) - 1):
This will still generate overlapping 8 second samples, but allow the entire training set to be used.

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