Alliteration, onomatopoeia, rhythm and rhyme are all literary devices used in poetry to illustrate sounds. These uses of figurative language or also referred to as 'sound devices' can make a musical feel in a poem by the use of certain letters, words, and repetition of vowels/consonants.
Doing so can add effect, evoke imagery and portray sounds.
Hope this helps! Let me know if you have any other questions or would like further explanation! :)