The literary device used by the author in this passage is Personification.
Personification is a type of metaphor that consists of giving human traits to something that is not human to describe a picture in other's people heads.
In the passage, 1) the wind whispers softly and 2) the stream giggles.