I believe that you can learn a solo 100% by ear and by eyes. The more you’re aware and trained with your scales, licks, and even the style of the player who’s solo you’re trying to learn, I think this is the biggest factor. Having something to slow it down can help too.