Insane New AI Model by Meta, and it's Open Source!

Meta released Audiocraft, an open-source framework that generates music and sound effects from text. MusicGen, its music model, trained on 20,000 hours of licensed music, outpaces Google's MusicLM which used roughly 1,000 hours. The system uses a neural codec called Encodec to compress audio into tokens that an AI can work with.
Questions this video answers
August 5, 2023
20,000 hours of licensed music
October 2022
1,000 hours (from YouTube)
Chapters
Meta has just released a new tool called audiocraft that lets you create realistic audio and music from text based inputs. And it is so insanely powerful that it's scary. So AudioCraft is a framework that combines three different AI MusicGen, AudioGen and Encodec. MusicGen generates music from text based inputs. AudioGen generates specific sounds like footsteps, barking dogs, car honks from text based prompts, and encodec is a neural audio codec that compresses audio files without losing quality, especially for quick sharing. All of these models are trained on raw audio signals instead of MIDI or piano rolls, which means they can produce high quality audio that sounds realistic and natural. To be honest, this is a huge breakthrough in the field of AI music generation, which has always seemed a bit behind compared to images, video and text. Until now, most of the existing tools for generating music with AI were either limited in their capabilities or required a lot of technical skills and knowledge to use. But audiocraft aims to bridge that gap and make generative AI for audio more accessible and user friendly. So how does it work? Well, let me break it down for you. First, let's talk about musicgen, the model that generates music from text based inputs. It was trained on 20,000 hours of licensed music owned by Meta or specifically licensed for audiocraft. And that's a lot of music. It can generate music in different genres, styles, moods and instruments, depending on what you type in. For example, you can type in something like a happy pop song with piano and guitar, or a sad classical piece with violin and cello, and it will create music that matches your description. Music Gen uses a technique called discrete audio tokens to generate music. Discrete audio tokens are basically a fixed vocabulary for music samples that are learned from raw audio signals by encodec. It then uses an autoregressive language model to generate sequences of these tokens that form musical patterns. The generated tokens are then decoded back to the audio space by encodec to obtain the output waveform. It can also generate music conditioned on melodic features such as pitch, rhythm, or harmony. This means you can input a melody or a chord progression and musicgen will generate music that follows it. You can also control the tempo, key and duration of the generated music. Now, audiogen is the model that generates specific sounds from text based prompts. It was trained on public sound effects such as animal noises, human voices, environmental sounds, etc. So if you type in a dog barking in the park or a car honking in traffic, audiogen will produce sounds that fit your description. Audiogen creates sounds in the same way as musicgen, using discrete audio tokens and autoregressive language models. But while musicgen focuses on music, this model deals with common sounds such as wind, rain and whistles. Another cool thing about audiogen is it can make sounds based on where they come from and where you are. So if you tell it where a sound is and where you're listening from, it'll make the sound as if you're really there. Encodec is a neural audio codec that compresses audio files without losing quality. It was first introduced by Meta in October 2022 as a tool for enhancing voice calls and voice messages under poor network conditions. Now it has been improved and integrated into audiocraft as a foundational component for generating audio. Encodec works by mapping the raw audio signal to one or several parallel streams of discrete tokens using a neural network encoder. These tokens are then compressed using standard compression algorithms such as Huffman coding or arithmetic coding. The compressed tokens are then decoded back to the raw audio signal using a neural network decoder. The good thing about encodec is that it's great for all audio files. It compresses quickly and plays back the audio with high quality. If there's any noise or distortion because of the compression process. It has a special way called diffusion based approach to reduce those imperfections. Making the sound clearer now how is Audiocraft different from other AI music making tools? One of its main rivals is Music LM, created by Alphabet Inc's research lab Magenta. Like Audiocraft, MusicLM is an AI system that creates music using words. They both transform text into musical sounds using the same techniques I mentioned earlier, discrete audio tokens and autoregressive language models. Lets look at the unique features of audiocraft. Compared to MusicLM, audiocraft uses more data to learn. It was trained using 20,000 hours of music from companies like Meta and others. In contrast, MusicLM learned from 1000 hours of music found on YouTube. Because of this, Audiocraft can create music with a wider range and better quality. Audiocraft offers more ways to shape the music. While Music LM makes music based only on text, Audiocraft can also use melodies and space like qualities to craft the sound. This allows users to create more personalized and engaging tunes. The way Audiocraft handles sound is more advanced. While MusicLM uses a basic method to change the audio pieces, Audiocraft uses a more complex approach involving something called diffusion. As a result, Audiocraft can manage sound files better, making them sound clearer with fewer distortions. In conclusion, Audiocraft has several benefits over MusicLM and similar AI music tools. If you're curious, give Audiocraft a try and judge for yourself. Actually, one of the coolest things about Audiocraft is that it is open source, which means that anyone can access the code, the models and the data behind it and use it for their own purposes. Meta has released Audiocraft as part of its commitment to responsible innovation and to foster collaboration and creativity in the AI community. By Open Sourcing Audiocraft, Meta hopes to enable more people to experiment with generative AI for audio and to build on top of their work. Open Sourcing also helps ensure equal access and transparency, as well as ethical and legal compliance. They encourage users to respect the rights and interests of the original creators of the music and sounds that are used or generated by Audiocraft. If you want to use Audiocraft for your projects, you'll need to install it on your computer and follow their website's instructions. You have the flexibility to modify Audiocraft's settings to match your requirements. You can change the sampling rate, the number of tokens, the temperature, and the top k sampling of the generative models. You can also choose various text or melodic encoders to influence the audio generation based on specific features. Moreover, Audiocraft lets you combine different models and components, allowing for unique audio results. For instance, you might use Music Gen for a melody and then add effects with audiogen. Of course, not everyone is happy about Audiocraft and other tools for generating music with AI. Some artists have expressed concerns over potential copyright infringements and loss of artistic identity. For example, some musicians have sued Meta for using their songs without permission or compensation to train musicgen. Some artists have also questioned the authenticity and originality of the music generated by AI. They argue that AI cannot capture the human emotions, intentions and expressions that are essential to music creation. They also worry that AI might replace human musicians or lower the standards of musical quality. These are valid concerns that need to be addressed by the AI community and the music industry. However, I think that AI isn't something to fear in music. It's a chance to do more with music. AI can boost our creativity and teamwork instead of taking it away. It can give us fresh ways to make music instead of holding us back. So what do you think? Are you excited about Audiocraft? Let me know in the comments section below. And don't forget to like this video and subscribe to my channel for more content like this. Thanks for watching. Thank you for watching and I'll see you in the next one.










