For some strange reason, when you use the /playsound command and open an inventory/book when the sound ends (or have it open when it ends), upon exiting the inventory/book, the sound replays.
Related issues
Comments

For some strange reason, when you use the /playsound command and open an inventory/book when the sound ends (or have it open when it ends), upon exiting the inventory/book, the sound replays.
migrated
(Unassigned)
Unconfirmed
Minecraft 1.8.7
Retrieved
Dupe of MC-35714