reach-vb HF staff commited on
Commit
e6c7c3f
1 Parent(s): 46c930b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -63,7 +63,7 @@ synthesiser = pipeline("text-to-audio", "facebook/musicgen-large")
63
 
64
  music = synthesiser("lo-fi music with a soothing melody", forward_params={"do_sample": True})
65
 
66
- scipy.io.wavfile.write("musicgen_out.wav", rate=music["sampling_rate"], music=audio["audio"])
67
  ```
68
 
69
  3. Run inference via the Transformers modelling code. You can use the processor + generate code to convert text into a mono 32 kHz audio waveform for more fine-grained control.
 
63
 
64
  music = synthesiser("lo-fi music with a soothing melody", forward_params={"do_sample": True})
65
 
66
+ scipy.io.wavfile.write("musicgen_out.wav", rate=music["sampling_rate"], data=music["audio"])
67
  ```
68
 
69
  3. Run inference via the Transformers modelling code. You can use the processor + generate code to convert text into a mono 32 kHz audio waveform for more fine-grained control.