This page contains the API documentation for the Transcript UI module. This module is used to display a live transcript of a voice conversation.

## Usage

Import the module in your HTML page using the following code:

```javascript
<script src="https://www.gstatic.com/agent-assist-ui-modules/v1/transcript.js"></script>
```

Embed the module using the following tag:

```javascript
<agent-assist-transcript>
```

## Attributes

| Property name | Type | Comment |
|---|---|---|
| show-message-time | [BooleanString](https://docs.cloud.google.com/gemini-enterprise-cx/agent-assist/ui-modules-transcript-documentation.md.txt#BooleanString) | Whether to show a timestamp offset next to each message. |

### Usage

Attributes are string-based component properties which can be set in the following ways:

From your HTML template directly:

```javascript
<element-selector property-name="value">
```

From your JavaScript code:

```javascript
var el = document.querySelector('element-selector');
el.setAttribute('property-name', 'value');
```

## Inputs

No inputs.

## Types

See the following section for the custom types used by the component.

### BooleanString

```javascript
"true" | "false"
```