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

Variable audio is not declared or defined before use in Quickstart Guide code. #17

Open
NyongCho opened this issue Oct 8, 2024 · 0 comments

Comments

@NyongCho
Copy link

NyongCho commented Oct 8, 2024

In line 10 of the Quickstart Guide:
sf.write(f"{prompt}.wav", audio, samplerate=16000)

The variable audio is used but never declared or defined. To fix this, it should be replaced with the variable music, which is the return value of model.generate(prompt).

So, the corrected line should be:
sf.write(f"{prompt}.wav", music, samplerate=16000)

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

1 participant