<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Audio](./server.audio.md) &gt; [setDistortion](./server.audio.setdistortion.md)

## Audio.setDistortion() method

Sets the distortion of the audio.

**Signature:**

```typescript
setDistortion(distortion: number): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

distortion


</td><td>

number


</td><td>

The distortion amount.


</td></tr>
</tbody></table>
**Returns:**

void

