***

title: volume
slug: /reference/python/relay/actions/collect-action/volume
description: Adjust the prompt playback volume during a play-and-collect operation.
max-toc-depth: 3
---------------------

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

Adjust the prompt playback volume.

## **Parameters**

<ParamField path="volume" type="float" required={true} toc={true}>
  Volume adjustment in dB. Range: `-40.0` to `40.0`.
</ParamField>

## **Returns**

`dict` -- Server acknowledgment.

## **Example**

```python {19}
from signalwire.relay import RelayClient

client = RelayClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
    contexts=["default"],
)

@client.on_call
async def handle_call(call):
    await call.answer()
    action = await call.play_and_collect(
        media=[{"type": "tts", "text": "Press 1 for sales, 2 for support."}],
        collect={"digits": {"max": 1, "digit_timeout": 5.0}},
    )

    # Increase prompt volume
    await action.volume(10.0)

client.run()
```