1. Install react-sounds and add the pack with its CLI
npm i react-sounds howler
npx react-sounds-cli add https://openfoley.com/c/ambient-loopsInstalls the latest version; run the command again to update. Pin a version if your app needs sounds that never change. Add --download to copy the files into your project.
2. Register it and play sounds by name (names autocomplete)
import ambientLoops from "./sounds/ambient-loops.json";
<SoundProvider packs={[ambientLoops]}>…</SoundProvider>
const { play } = useSound("ambient-loops/busy-cafe-chatter");ambient-loops/busy-cafe-chatter
ambient-loops/city-street-traffic
ambient-loops/cozy-window-rain
ambient-loops/crackling-fireplace-ambience
ambient-loops/forest-morning-ambience
ambient-loops/gentle-wind-chimes
ambient-loops/heavy-rain-thunderstorm
ambient-loops/sandy-beach-waves
ambient-loops/summer-night-crickets