If you are familiar with text-2-img picture generation, here are some links to generate music, locally on your computer with an AI, using some lines of text:
https://github.com/facebookresearch/audiocraft
Audiocraft by meta/facebook research
https://aitestkitchen.withgoogle.com/experiments/music-lm
MusicLM with the AI Test Kitchen demo
Moƻsai:
https://github.com/archinetai/audio-diffusion-pytorch
Riffusion:
https://github.com/riffusion/riffusion
Tests and installation comments are on the way.