Sounds
Rhyme provides a rich collection of built-in sounds to enhance your app’s user experience. From subtle button taps to attention-grabbing alerts, sounds add an extra dimension of interactivity to your apps.
Available Sounds
Rhyme includes over 50 pre-loaded sounds organized into categories:
- Beep sounds - Notifications, alerts, and feedback tones
- Tap sounds - Button clicks and user interactions
- Event sounds - Success, error, and completion indicators
- Slide sounds - Transitions and swipe gestures
Browse the categories below to preview and test all available sounds.
Quick Start
Playing sounds in Rhyme is simple:
// Play a button tap sound
play ~tap-click
// Play an alert beep
play ~beep-alert
// Play a success sound
play ~event-success
Sound Categories
Beep Sounds
24 notification and alert tones - perfect for alerts, notifications, and feedback.
Tap Sounds
24 button and interaction sounds - ideal for clicks, taps, and user interactions.
Event Sounds
4 feedback sounds for app events - success, error, completion, and cancellation.
Slide Sounds
6 transition and swipe sounds - great for navigation and motion feedback.
Common Patterns
Button Feedback
button "Save" =>
play ~tap-professional
save-data
Success/Error Handling
if $save-successful
play ~event-success
notify "Saved!"
else
play ~event-error
notify "Please try again"
end
Custom Sounds
You can also define your own sounds:
// Map to a built-in sound
set-sound ~my-click to ~tap-crisp
// Map to an external file
set-sound ~my-sound to "https://example.com/sound.mp3"
Next Steps
- Browse the sound categories above to find the perfect sounds for your app
- Learn about sound actions in the reference
- See examples of sounds used in real apps
Beep Sounds
Beep sounds are perfect for notifications, alerts, and feedback in your app. These 24 sounds range from subtle pings to attention-grabbing alerts.
Usage
// Play a beep sound
play ~beep-pop
// Play with volume control (0-100)
play ~beep-alert -volume:80
Available Beep Sounds
Click the play button to preview any sound and copy its tag. You can also click the sound name to copy it.
Sound | Description | Best For |
---|---|---|
Alert notification | Error messages, warnings | |
Attention grabber | Important notifications | |
Playful bop | Game feedback, fun interactions | |
Bright and poppy | Success messages, achievements | |
Digital glitch | Tech/cyber themed apps | |
High pitched tone | Subtle notifications | |
Sustained tone | Loading, processing | |
Horn-like beep | Alerts, alarms | |
Metallic ring | Modern UI feedback | |
Organ-style beep | Musical apps | |
Piano note | Elegant feedback | |
Plucked string | Soft notifications | |
Simple pop | General purpose | |
Reed instrument | Unique feedback | |
Rejection/error | Failed actions | |
Blocked/stopped | Access denied | |
Scraping sound | Industrial theme | |
Scratchy texture | Retro/vintage | |
Sharp string pluck | Quick feedback | |
Shiny metallic | Premium feel | |
Tapped surface | Subtle feedback | |
Wooden timbre | Natural, organic | |
Warm guitar tone | Friendly, welcoming | |
Xylophone hit | Playful, musical |
Examples
Notification System
// Different sounds for different notification types
if $notification-type = "error"
play ~beep-rejected
elif $notification-type = "warning"
play ~beep-alert
elif $notification-type = "success"
play ~beep-brightpop
else
play ~beep-pop
end
Loading Feedback
// Play sustained tone while loading
play ~beep-holdtone
load-data
play ~beep-brightpop // Success sound when done
Tap Sounds
Tap sounds provide tactile feedback for button clicks and user interactions. These 24 sounds help users feel connected to your app’s interface.
Usage
// Play a tap sound
play ~tap-click
// Play on button press
button "Submit" => play ~tap-professional
Available Tap Sounds
Click the play button to preview any sound and copy its tag. You can also click the sound name to copy it.
Sound | Description | Best For |
---|---|---|
Standard button | General buttons | |
Classic click | Default interactions | |
Crisp tap | Clean, modern UI | |
Crisp variant 1 | Alternative crisp | |
Crisp variant 2 | Another crisp option | |
Double tap | Multi-tap actions | |
Soft fuzzy tap | Gentle feedback | |
Hollow sound | Unique interaction | |
Kiss-like pop | Playful apps | |
Mellow tap | Calm interfaces | |
Metal tap | Industrial design | |
Muted tap | Subtle feedback | |
Percussive hit | Strong feedback | |
Professional UI | Business apps | |
Resonant tap | Deep feedback | |
Scratchy tap | Textured feel | |
Simple tap | Minimalist | |
Sizzling tap | Energetic | |
Tiny tap | Micro-interactions | |
Toothy click | Distinctive | |
Vocal-like tap | Human touch | |
Warm tap | Friendly feel | |
Wood tap | Natural theme | |
Zipper-like | Sliding actions |
Examples
Button Types
// Primary action button
button "Save" -primary =>
play ~tap-professional
save-changes
// Secondary button
button "Cancel" =>
play ~tap-muted
close-dialog
// Destructive action
button "Delete" -danger =>
play ~tap-metallic
confirm-delete
Interactive List
// Play different sounds for different list items
list $items => item
row =>
play ~tap-click
select-item item
Toggle Switches
// Different sounds for on/off
toggle $setting => value
if value
play ~tap-crisp1 // On
else
play ~tap-crisp2 // Off
end
Event Sounds
Event sounds provide clear audio feedback for important app events like success, errors, and task completion. These 4 sounds help users understand what’s happening in your app.
Usage
// Play event sounds
play ~event-success
play ~event-error
Available Event Sounds
Click the play button to preview any sound and copy its tag. You can also click the sound name to copy it.
Sound | Description | Best For |
---|---|---|
Action cancelled | User cancellations, aborted operations | |
Task completed | Finished processes, downloads, uploads | |
Error occurred | Failed operations, validation errors | |
Success! | Successful saves, achievements, wins |
Examples
Form Submission
submit-form => result
if result.success
play ~event-success
notify "Form submitted successfully!"
navigate-to "/thank-you"
else
play ~event-error
notify "Please check your information"
highlight-errors result.errors
end
File Upload
upload-file $file => status
if status = "uploading"
show-progress
elif status = "complete"
play ~event-complete
notify "Upload finished!"
elif status = "cancelled"
play ~event-cancel
notify "Upload cancelled"
elif status = "error"
play ~event-error
notify "Upload failed"
end
Game Achievements
// Achievement unlocked
if $score > $high-score
play ~event-success
show-achievement "New High Score!"
set $high-score to $score
end
// Level complete
if $level-complete
play ~event-complete
show-results
unlock-next-level
end
Process Monitoring
// Long running process
start-process =>
show-loading "Processing..."
process-complete =>
play ~event-complete
hide-loading
show-results
process-error => error
play ~event-error
show-error error.message
Best Practices
- Be Consistent - Use the same sound for similar events across your app
- Don’t Overuse - Reserve event sounds for important moments
- Consider Context - Error sounds in a game might be different than in a business app
- Test Volume - Event sounds are often louder, so test at different volumes
Slide Sounds
Slide sounds are perfect for transitions, swipe gestures, and moving between screens. These 6 sounds add smooth audio feedback to motion in your app.
Usage
// Play a slide sound
play ~slide-paper
// Play during navigation
navigate-to "/next-page" => play ~slide-network
Available Slide Sounds
Click the play button to preview any sound and copy its tag. You can also click the sound name to copy it.
Sound | Description | Best For |
---|---|---|
Magical transition | Special effects, reveals | |
Metal sliding | Industrial, mechanical | |
Digital slide | Tech apps, data transfer | |
Paper sliding | Document apps, page turns | |
Rock grinding | Heavy, dramatic transitions | |
Scissor cut | Cut, crop, trim actions |
Examples
Page Transitions
// Swipe between pages
swipe-left =>
play ~slide-paper
show-next-page
swipe-right =>
play ~slide-paper
show-previous-page
Tab Navigation
// Tab switching with different sounds
tab "Home" =>
play ~slide-network
show-home
tab "Profile" =>
play ~slide-network
show-profile
tab "Settings" =>
play ~slide-metal
show-settings
Reveal Animations
// Magical reveal
button "Show Secret" =>
play ~slide-magic
animate-reveal $secret-content
Drawer/Panel Controls
// Sliding drawer
toggle $drawer-open => open
if open
play ~slide-metal
slide-in $drawer
else
play ~slide-metal
slide-out $drawer
end
Cut/Crop Operations
// Image cropping
button "Crop" =>
play ~slide-scissors
apply-crop $image
// Text trimming
button "Trim" =>
play ~slide-scissors
trim-whitespace $text
Animation Timing
Slide sounds work best when synchronized with visual animations: