I been trying this for a long time, but doesn't seem to work, I have tried using multiple codes, this is one of them that i'm currently using but doesn't seem to work:
from moviepy.editor import *
image = ImageClip("image.jpg")
audio = AudioFileClip("audio.mp3")
video = CompositeVideoClip([image.set_duration(audio.duration)])
video = video.set_audio(audio)
video.write_videofile("output.mp4", fps=24)