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

Changing to shorter segments #38

Open
Themba4Sho opened this issue Jun 28, 2022 · 1 comment
Open

Changing to shorter segments #38

Themba4Sho opened this issue Jun 28, 2022 · 1 comment

Comments

@Themba4Sho
Copy link

What do I need to change to train on shorter segments? I used data with minimum length of 3 seconds, but the wav_to_spec module still processes speech with only 10 seconds or more.

@Vadim2S
Copy link

Vadim2S commented Jan 16, 2023

In case you still want answer:

  1. Go to config.yaml.
  2. See input shape parameter like [129, 500, 1].
  3. Set segment_length as 3. This is minimal audio lenght in seconds
  4. Set pixel_per_second = 500 / segment_length.
    In general you must provide input_shape[1] = segment_length * pixel_per_second by any means you wish.

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