In this BSc. Thesis the world of AI-generated music is explored. The paper focuses on generating waveforms from text prompts, where the generated waveforms are stored in a listenable format, such as .wav or .mp3. The project explores a model called MusicGen, which is one of the current state-of-the-art models in text-to-music. During this project several MusicGen models of different sizes have been trained. The relationship between the number of parameters and inference time is investigated. The smallest trained model with 1M parameters, achieves an inference time of around 1 second running on a CPU. Furthermore, this project highlights the difficulties when training models like MusicGen, where data is the most prominent issue. To combat limited access to data, this paper also proposes 2 solutions, namely knowledge distillation and self-labeled music. In terms of quality, the models have been evaluated using Contrastive Language-Audio Pretraining (CLAP) and Frechet Audio Distance (FAD). CLAP is a measure of how well the generated music aligns with the text prompt, and FAD is a measurement of the overall audio quality. A subjective quality evaluation has also been done. This paper shows that after around 50M parameters MusicGen’s inference time on a CPU becomes longer than the duration of the generated audio. This is an important threshold as a real-time model should generate music faster than it takes to listen to it.