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

why convert average mel to integer #2

Open
mayfool opened this issue Jul 28, 2022 · 3 comments
Open

why convert average mel to integer #2

mayfool opened this issue Jul 28, 2022 · 3 comments

Comments

@mayfool
Copy link

mayfool commented Jul 28, 2022

@mayfool
Copy link
Author

mayfool commented Jul 28, 2022

Thanks for implementing adaspeech, I'm confused why convert average mel to integer.

@tuanh123789
Copy link
Owner

Thanks for implementing adaspeech, I'm confused why convert average mel to integer.

because the mel spectrogram frame is a matrix, if you want to slice it you have to convert float to int :D

@mayfool
Copy link
Author

mayfool commented Jul 29, 2022

Thanks for implementing adaspeech, I'm confused why convert average mel to integer.

because the mel spectrogram frame is a matrix, if you want to slice it you have to convert float to int :D

I don't mean this.I mean why use "//" op here,this op converts average mel to integer.Maybe should use "mel[:, int(start):int(end)], axis=1)/np.array(end - start)" ?

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