Sounds for every action
Magic Glyphs has 528 sounds. The suggest_sounds tool picks the right few for what happens in your interface, with a reason for each, so the assistant does not have to guess from names.
Tutorial
Section titled “Tutorial”1. Connect your assistant (setup). Works with the local and the hosted server.
2. Ask:
What sound should play when a payment fails?
3. Choose. The assistant gets:
| Sound | Why |
|---|---|
error |
clear but not harsh |
wrong |
a short low “no” (extra sound pack) |
fail |
heavier, for something that really broke |
4. Use it. The assistant sets it on the icon:
<magic-glyph name="warning" sound sound-name="error"></magic-glyph><MagicGlyph name="warning" sound soundOptions={{ sound: 'error' }} />More examples
Section titled “More examples”| You ask about | First suggestion |
|---|---|
| Added to cart | pickup*, then coin, pop |
| Message sent | send*, then messageout*, swish |
| Toggle dark mode | toggleon* and toggleoff*, or lightswitch* |
| Delete | crumple, then cut, woodtap |
| Celebrate | tada, then fanfare, levelup |
* In the extra sound pack, which needs one line in your app: import pack from 'magic-glyphs/sounds'; MagicGlyphs.sound.add(pack);. The other sounds are built in.
Every sound can be tuned (volume, pitch, speed, tone, stereo and delay) or replaced with your own file. See Sound.