hi! there have been a few questions in this sub about music. Depending on what you mean by "earliest music", here are a few previous discussions to get you started. I'll leave pioneering sound recording for someone else.
Did the Neanderthals have music?
What was music like in the Stone Age?
What is the first song? How far back is the origin of music?
What is the oldest known piece of music?
What is the oldest form of musical notation?
What is the oldest music we can perform accurately today?
What is the oldest piece of music that can still be reproduced today?
What is the earliest musical piece that we can play accurately as it was played originally?
What is the oldest piece of music still commonly listened to?