this is often called “audio to midi" or "Music Transcription". the best ones specialize in an instrument (piano, guitar, voice...).
free/online options :
https://basicpitch.spotify.com/
https://samplab.com/audio-to-midi
You will have to convert the midi output to notation in any notation software like Musescore