> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# volume

> Adjust the prompt playback volume during a play-and-collect operation.

Adjust the prompt playback volume.

## **Parameters**

**`volume`** `number` — required

Volume adjustment in dB. Range: `-40.0` to `40.0`.

---

## **Returns**

`Promise<Record<string, unknown>>` -- Server acknowledgment.

## **Example**

```typescript {17}
import { RelayClient } from '@signalwire/sdk';

const client = new RelayClient({
  project: process.env.SIGNALWIRE_PROJECT_ID!,
  token: process.env.SIGNALWIRE_API_TOKEN!,
  contexts: ['default']
});

client.onCall(async (call) => {
  await call.answer();
  const action = await call.playAndCollect(
    [{ type: 'tts', text: 'Press 1 for sales, 2 for support.' }],
    { digits: { max: 1, digit_timeout: 5.0 } },
  );

  // Increase prompt volume
  await action.volume(10.0);
});

await client.run();
```