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

some wrong at sf.write in convert.py #187

Open
Niuguangshuo opened this issue Jul 17, 2024 · 1 comment
Open

some wrong at sf.write in convert.py #187

Niuguangshuo opened this issue Jul 17, 2024 · 1 comment

Comments

@Niuguangshuo
Copy link

sf.write('{}/{}.wav'.format(pv_dir, pv_basename), [0], sr)

change to
pv_wave = spec_utils.spectrogram_to_wave(pv, hop_length=args.hop_length)
pv_wave = pv_wave.astype(np.float32)
sf.write('{}/{}.wav'.format(pv_dir, pv_basename), pv_wave.T, sr)

@tsurumeso
Copy link
Owner

This is intended.
Please rewrite as suggested only if necessary.

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