dsh-client-ui-sound-effects
v0.1.0
Published
Dog-bark sound effects for the assistant reasoning flow in the dsh Web client
Downloads
159
Readme
dsh-client-ui-sound-effects
Browser-only Web plugin that plays dog-bark audio while the assistant reasons:
大狗plays repeatedly while a reasoning block streams; the repeat interval shrinks as reasoning deepens (cumulative reasoning text length).叫plays once when reasoning completes (the first text/tool content, or the step's final assistant message for a reasoning-only step).
Audio is inlined into the client bundle as base64 data URLs (see
assets/README.md), decoded and played through the Web Audio API.
How it works
The browser half registers a sound-effects ConversationNodeDefinition that
projects one assistant step's assistant/chunk stream (reasoning deltas and the
reasoning→content transition) into a headless Chat node. The node's keyed
conversation.chat.node renderer returns null (the owning .flowItem
collapses via :empty), playing the bark loop and closing howl from React
effects. Composing the plugin out of cordis.yml removes the audio entirely.
