Skip to main content

Sound

Some stories and games contain video or audio. Sound is a global SDK setting: it applies across every reader, so muting it once mutes all subsequent content.

Toggle sound

Pass true to enable sound or false to mute it:

storyManager.changeSound(true); // enable
storyManager.changeSound(false); // mute

Read the current state

getSound is async and resolves to the current value — useful for driving a mute/unmute button:

const soundEnabled = await storyManager.getSound();