const animalSound = new Sound( selectedAnimals.soundUrl ||"snake.mp3", null, error => {
if (error) console.log("Can't play sound. ", error);
})
const handlePlaySound = () => {
animalSound.setVolume(1);
animalSound.play(() => {
animalSound.release();
});
};
const handleStopSound = () => {
animalSound.stop()
}