Ashfkhtk11's picture
Sound Options (10 sounds): White Noise β†’ sounds/white_noise.wav Pink Noise β†’ sounds/pink_noise.wav Brown Noise β†’ sounds/brown_noise.wav Rain β†’ sounds/rain.wav Ocean Waves β†’ sounds/ocean_waves.wav Thunderstorm β†’ sounds/thunderstorm.wav Fireplace β†’ sounds/fireplace.wav Wind β†’ sounds/wind.wav Night Crickets β†’ sounds/night_crickets.wav Forest Birds β†’ sounds/forest_birds.wav Each sound must have its own volume slider (0–100%), and multiple sounds should be able to play together (mixing). Sleep Timer: Dropdown with options: Off, 15 min, 30 min, 45 min, 60 min, 90 min. After the timer ends, fade out and stop all sounds. Presets (quick mixes): Rainy Night β†’ Rain + Thunderstorm + Night Crickets Ocean Breeze β†’ Ocean Waves + Wind + Forest Birds Deep Sleep β†’ Brown Noise + Fireplace UI Layout: A dropdown for sleep timer at the top-left. Preset buttons (Rainy Night, Ocean Breeze, Deep Sleep) at the top. Below that, show the 10 sound options in a grid layout (2 rows Γ— 5 columns). Each sound block should have: A round placeholder icon (or circle) The sound name A volume slider below Folder for Sounds: Create a folder named sounds in the Space. All sound files must be placed inside this folder with the exact filenames listed above. The app should automatically load these files when it runs. Technical details: Use Python + Gradio. Use pydub (or another library) to mix sounds based on slider volumes. Export the mixed audio as a temporary .wav and play it in a Gradio Audio player. Should run fully in browser on Hugging Face free tier. Design style: Clean, minimal, modern look. Light blue accent for sliders and buttons (like in the screenshot). Easy to use, calming interface. - Initial Deployment
44eb8f4 verified