# Block deesser

> A de-esser you can plug in: its state, a panel that draws what it does at each frequency and an engine that plays it. Play a voice through it, lower the threshold and the s sits back

A shadcn/ui block from the [@audio-ui](https://www.audio-ui.dev/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/audio-ui/block-deesser).

- Page, with a live preview: https://shadcn.exchange/r/audio-ui/block-deesser
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/audio-ui/block-deesser-light-38a8aab9606776fc.png
- Registry item: https://www.audio-ui.dev/r/new-york-v4/block-deesser.json
- Listed: 2026-10-17, source last changed 2026-10-17

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/audio-ui/block-deesser.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `@audio-ui/react`
- Registry items: `@audio-ui/deesser-panel`, `@audio-ui/deesser-device`, `@audio-ui/deesser-engine`, `@audio-ui/demo-loop`, `@audio-ui/play-toggle`, `@audio-ui/use-device-loop`, `@audio-ui/use-master-bus`

## Files

### `block-deesser.tsx`

```tsx
"use client";

import { useState } from "react";
import { PlayToggle } from "@/components/audio-ui/play-toggle";
import { DeesserPanel } from "@/components/audio-ui/devices/deesser/panel";
import { useDeviceLoop } from "@/hooks/use-device-loop";
import { useMasterBus } from "@/hooks/use-master-bus";
import {
  type DeesserState,
  deesserDevice,
} from "@/components/audio-ui/devices/deesser/device";
import { createDeesserEngine } from "@/components/audio-ui/devices/deesser/engine";
import { renderSibilantLoop } from "@/lib/demo-loop";

const MASTER_VOLUME = 0.7;

/**
 * A de-esser you can plug in: its state, a panel that draws what it does at
 * each frequency and an engine that plays it, each its own file and none
 * knowing the others. It plays a held vowel with an "s" on four beats: lower
 * the threshold and the s sits back, switch Listen on to hear the highs alone.
 */
export function BlockDeesser() {
  const [state, setState] = useState<DeesserState>(() =>
    deesserDevice.defaults()
  );
  const master = useMasterBus(MASTER_VOLUME);
  const { playing, toggle } = useDeviceLoop({
    create: createDeesserEngine,
    destination: master,
    signal: renderSibilantLoop,
    state,
  });
  return (
    <div className="rounded-xl h-full w-full min-w-0">
      <DeesserPanel onValueChange={setState} value={state}>
        <PlayToggle
          label="Play a voice through it"
          onToggle={toggle}
          playing={playing}
        />
      </DeesserPanel>
    </div>
  );
}
```
