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

Wrong noise trunication? #23

Closed
DinoTheDinosaur opened this issue Dec 29, 2018 · 4 comments
Closed

Wrong noise trunication? #23

DinoTheDinosaur opened this issue Dec 29, 2018 · 4 comments

Comments

@DinoTheDinosaur
Copy link

DinoTheDinosaur commented Dec 29, 2018

In prepare_data.py in calculate_mixture_features

# Truncate noise to the same length as speech. 
else:
    noise_audio = noise_audio[noise_onset : noise_offset]

Shouldn't the range here be noise_audio[:len(speech_audio)] for instance? Otherwise it results in shapes mismatch later in the code.

@qiuqiangkong
Copy link
Collaborator

qiuqiangkong commented Jan 2, 2019 via email

@DinoTheDinosaur
Copy link
Author

DinoTheDinosaur commented Jan 6, 2019

Here

@qiuqiangkong
Copy link
Collaborator

qiuqiangkong commented Jan 6, 2019 via email

@DinoTheDinosaur
Copy link
Author

Yes, you're right, I see it in the code now.

Strangely, this part threw an error before the adjustments... Maybe there are some environment issues (I work in python 3). I guess I will look into the problem in detail some other time, closing the issue for now

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