April 2026
Intermediate
395 pages
13h 22m
English
Generating audio like voices or music is quite impressive. With a text description of a music track, you can create it easily. You can rely on an online service like https://suno.com/, but in this section, we want to run a model locally on our systems.
In this exercise, find and select a model to create a music track and then run that model locally. If you don’t own a powerful GPU, we advise searching for a model with “small” in its name. Try to solve this problem independently before checking out our solution.
For our solution, we’ll use a model from Facebook called facebook/musicgen-small (https://huggingface.co/facebook/musicgen-small).
You can find the code at 02_PreTrainedNetworks\40_text_to_audio.py ...
Read now
Unlock full access