Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

useSpeaking

useSpeaking(player): boolean

Whether player is speaking in the room’s voice: the page’s own player while her microphone sends her voice, and another while the page plays hers. It turns on with the first word and holds a moment past the last, so a mark drawn from it does not flicker between words, as Discord’s ring does. A player who controls nothing speaks too: her voice is hers, not her character’s.

const speaking = useSpeaking(player);
return speaking && <Icon name="mic" />;
Parameter Type
player Entity | null | undefined

boolean