---
title: "Sound toggle animated icon"
description: "Sound toggle animated icon (Preferences). Light: the sound arcs fade back into the speaker and a cross fades in beside it. Strong: the speaker recoils 0.7 as the arcs cut out, then the cross snaps in 20% large with a stop. Reverse: the cross fades and the arcs return."
canonical: https://generativeicons.com/icons/sound-toggle/
---

# Sound toggle animated icon

Light: the sound arcs fade back into the speaker and a cross fades in beside it. Strong: the speaker recoils 0.7 as the arcs cut out, then the cross snaps in 20% large with a stop. Reverse: the cross fades and the arcs return.

- Id: `sound-toggle`
- Category: Preferences
- Search terms: mute, unmute, sound on, sound off, audio on, audio off, speaker on, speaker off, volume off, volume on, silent
- Two states: on to muted, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/sound-toggle.lottie (dotLottie, 8808 bytes, sha256 a997817d6153b32bf605d9dd0e91c59e070e148a48b0a051508d87b78832df92)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add sound-toggle
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/sound-toggle.mjs';

export function SoundToggleIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/sound-toggle.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/sound-toggle/ · https://generativeicons.com/api/icons/sound-toggle
