mustango
mustango copied to clipboard
Variable `audio` is not declared or defined before use in Quickstart Guide code.
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)