Files
ai.interactive.fiction/public/sounds/README.md

851 B

Sound Effects

Story sound effect paths resolve relative to this directory.

Use inline sound effect markup inside narrative text:

The old door opens {{sfx:squeaky-door.ogg}} into the dark.

The marker is removed from displayed text and from TTS input. It is kept as a timed media cue, preloaded by the client, and played when the text animation reaches that cue position.

Supported browser-friendly formats are recommended: .ogg, .mp3, and .wav. Keep files small enough for responsive preload.

Sound effect loudness is controlled by the master volume and sound effects volume sliders in the options menu.

Document third-party source and license information here or next to the file.

Current test asset:

  • squeaky-door.ogg: Wikimedia Commons, "Squeaky door.ogg", sourced from PDSounds and marked public domain.