University of Chicago biologists Amish Dave and Daniel Margoliash looked into the brains of zebra finches and discovered something similar. These birds are not born with the melodies of their songs hardwired into the brains; instead, they have to learn to sing their songs. When they’re awake, the neurons in part of the finches’ forebrain called the robutus archistriatalis fire following their singing of particular notes. Researchers can determine which note was sung based on the firing patterns of those neurons. By piecing together the electrical patterns in those neurons over time, Dave and Margoliash can reconstruct the entire song from start to finish.
Later, when the birds were asleep, Dave and Margoliash looked again at the electrical activity in that part of their brains. The firing of those neurons wasn’t entirely random. Instead, the neurons fired in order, as if the bird was audibly singing the song, note for note. It might be said that the zebra finches were practising their songs while they slumbered.
You can find the original papers here.