***

title: live_translate
slug: /reference/python/relay/call/live-translate
description: Start or stop live translation on a call.
max-toc-depth: 3
---------------------

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

Start or stop live translation on the call. Translates spoken audio into
another language in real-time.

## **Parameters**

<ParamField path="action" type="dict" required={true} toc={true}>
  Action configuration for the live translation.
</ParamField>

<Indent>
  <ParamField path="action.action" type="str" required={true} toc={true}>
    The action to perform.

    * `"start"` -- begin live translation
    * `"stop"` -- end live translation
  </ParamField>

  <ParamField path="action.source_language" type="str" toc={true}>
    Source language code (e.g., `"en-US"`).
  </ParamField>

  <ParamField path="action.target_language" type="str" toc={true}>
    Target language code (e.g., `"es-ES"`).
  </ParamField>
</Indent>

<ParamField path="status_url" type="Optional[str]" toc={true}>
  URL to receive translation results via webhook.
</ParamField>

## **Returns**

`dict` -- Server response confirming the operation.

## **Example**

```python {15}
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()

    # Start live translation from English to Spanish
    await call.live_translate({
        "action": "start",
        "source_language": "en-US",
        "target_language": "es-ES",
    })

    # Let the call proceed...
    await call.wait_for_ended()

client.run()
```