Add method to determine duration of the sound: closes #1558