Can you use your Android phone as a computer speaker?

Can you use your Android phone as a computer speaker?
If you've got an old Android phone lying around, it may be possible to give the device new life as a computer speaker.