We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I use this function to get the codes.
with torch.no_grad(): source_audio = librosa.load("/content/FAcodec/spks.wav", sr=24000)[0] source_audio = torch.tensor(source_audio).unsqueeze(0).float().to(device) z = model.encoder(source_audio[None, ...].to(device).float()) z, quantized, _, _, timbre, codes = model.quantizer(z, source_audio[None, ...].to(device).float(), return_codes=True)
However, I am struggling to understand how to recover the audio from these codes and the timbre vector.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I use this function to get the codes.
However, I am struggling to understand how to recover the audio from these codes and the timbre vector.
The text was updated successfully, but these errors were encountered: