***

title: pause
slug: /reference/typescript/relay/actions/play-action/pause
description: Pause audio playback.
max-toc-depth: 3
---------------------

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

Pause audio playback. The playback position is preserved.

## **Returns**

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

## **Example**

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

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

client.onCall(async (call) => {
  await call.answer();
  const action = await call.play(
    [{ type: 'audio', url: 'https://example.com/hold-music.mp3' }],
    { loop: 0 },
  );

  await action.pause();
  // ... do something ...
  await action.resume();
});

await client.run();
```