Sound Alerts
Audio notifications for game events.
Setup
- Create sounds directory:
~/.vellum-fe/sounds/ - Add
.wavfiles - Reference in highlights
Using Sounds
In highlights.toml:
[[highlights]]
name = "death_alert"
pattern = "appears dead"
foreground = "#00FF00"
sound = "kill.wav"
sound_volume = 0.8
Sound Properties
| Property | Type | Default | Description |
|---|---|---|---|
sound | string | - | Filename in sounds directory |
sound_volume | float | 1.0 | Volume (0.0 to 1.0) |
Global Settings
In config.toml:
[sound]
enabled = true
volume = 0.7 # Master volume
cooldown_ms = 500 # Min time between sounds
startup_music = true # Play music on launch
Disabling Sounds
All Sounds
[sound]
enabled = false
Highlight Sounds Only
[highlights]
sounds_enabled = false
Example Sounds Setup
Directory structure:
~/.vellum-fe/sounds/
├── kill.wav
├── alert.wav
├── whisper.wav
├── danger.wav
└── loot.wav
Highlights:
[[highlights]]
name = "kill"
pattern = "appears dead"
sound = "kill.wav"
[[highlights]]
name = "stunned"
pattern = "You are stunned"
sound = "alert.wav"
sound_volume = 1.0
[[highlights]]
name = "whisper"
pattern = "whispers to you"
sound = "whisper.wav"
sound_volume = 0.5
[[highlights]]
name = "bleeding"
pattern = "Blood runs down"
sound = "danger.wav"
Supported Formats
- WAV (recommended)
- MP3
- OGG
- FLAC
Troubleshooting
No sound playing?
- Check
[sound] enabled = truein config.toml - Check
[highlights] sounds_enabled = true - Verify file exists in sounds directory
- Check file format is supported
- Try increasing volume