<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LiveCommunicationKit",
  "identifier" : "/documentation/LiveCommunicationKit/SetTranslatingAction",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "LiveCommunicationKit"
    ],
    "preciseIdentifier" : "s:20LiveCommunicationKit20SetTranslatingActionC"
  },
  "title" : "SetTranslatingAction"
}
-->

# SetTranslatingAction

An action that starts or stops translation.

```
final class SetTranslatingAction
```

## Overview

To avoid interrupting or impeding call translation when a person mutes their audio during a conversation, don’t deactivate the upstream audio. Instead, mute your app’s audio input using [`MuteConversationAction`](/documentation/LiveCommunicationKit/MuteConversationAction) and keep the upstream audio active to allow translated audio to flow when a person mutes the hardware microphone.

## Topics

### Creating a conversation action

[`init(conversationID: UUID, isTranslating: Bool, localLanguage: Locale.Language, remoteLanguage: Locale.Language)`](/documentation/LiveCommunicationKit/SetTranslatingAction/init(conversationID:isTranslating:localLanguage:remoteLanguage:))

Creates an action that starts or stops translation.

### Accessing action attributes

[`let isTranslating: Bool`](/documentation/LiveCommunicationKit/SetTranslatingAction/isTranslating)

A value that indicates whether to start or stop translation.

[`let localLanguage: Locale.Language`](/documentation/LiveCommunicationKit/SetTranslatingAction/localLanguage)

The local participant’s language.

[`let remoteLanguage: Locale.Language`](/documentation/LiveCommunicationKit/SetTranslatingAction/remoteLanguage)

The remote participant’s language.

### Completing a translation

[`func fulfill(using: SetTranslatingAction.TranslationEngine)`](/documentation/LiveCommunicationKit/SetTranslatingAction/fulfill(using:))

Reports that the translation action was successful.

[`enum TranslationEngine`](/documentation/LiveCommunicationKit/SetTranslatingAction/TranslationEngine)

Values that describe the translation engine that provided a translation.

## Relationships

### Inherits From

[`ConversationAction`](/documentation/LiveCommunicationKit/ConversationAction)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)