mustango icon indicating copy to clipboard operation
mustango copied to clipboard

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

Open NyongCho opened this issue 4 months ago • 0 comments

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)

NyongCho avatar Oct 08 '24 06:10 NyongCho