REST ClientCalling

live_translate

View as MarkdownOpen in Claude

Start live translation on an active call. Spoken audio is transcribed and translated in real time to a target language.

Request

idstringRequiredformat: "uuid"
The unique identifying ID of an existing call.
paramsobjectRequired
An object of parameters that will be utilized by the active command.

Response

Call LegobjectRequired
Returned when the call is a standard PSTN, SIP, or WebRTC call.
OR
Fabric Subscriber Device LegobjectRequired

Example

from signalwire.rest import RestClient
client = RestClient(
project="your-project-id",
token="your-api-token",
host="your-space.signalwire.com",
)
client.calling.live_translate(
call_id="call-id-xxx",
action={
"start": {
"from_lang": "en-US",
"to_lang": "es-ES",
"direction": ["local-caller", "remote-caller"],
"from_voice": "elevenlabs.josh",
"to_voice": "elevenlabs.josh",
}
},
)