santiago-gil-gdf
commited on
Commit
•
0385149
1
Parent(s):
3b776a7
Update README.md
Browse files
README.md
CHANGED
@@ -35,8 +35,7 @@ from audiocraft.models import AudioGen
|
|
35 |
from audiocraft.data.audio import audio_write
|
36 |
|
37 |
model = AudioGen.get_pretrained('facebook/audiogen-medium')
|
38 |
-
model.set_generation_params(duration=5) # generate
|
39 |
-
wav = model.generate_unconditional(4) # generates 4 unconditional audio samples
|
40 |
descriptions = ['dog barking', 'sirenes of an emergency vehicule', 'footsteps in a corridor']
|
41 |
wav = model.generate(descriptions) # generates 3 samples.
|
42 |
|
|
|
35 |
from audiocraft.data.audio import audio_write
|
36 |
|
37 |
model = AudioGen.get_pretrained('facebook/audiogen-medium')
|
38 |
+
model.set_generation_params(duration=5) # generate 5 seconds.
|
|
|
39 |
descriptions = ['dog barking', 'sirenes of an emergency vehicule', 'footsteps in a corridor']
|
40 |
wav = model.generate(descriptions) # generates 3 samples.
|
41 |
|