ESM
import "@arcgis/ai-components/components/arcgis-assistant-message-read-aloud";- Inheritance
- ArcgisAssistantMessageReadAloud→
HTMLElement
Adds text-to-speech playback controls. Use it to read assistant responses aloud. Offers read-aloud start/stop behavior with supported-state handling.
Properties
Methods
| Method | Signature |
|---|---|
| inherited | componentOnReady(): Promise<this> |
componentOnReady
inherited Method
- Signature
-
componentOnReady (): Promise<this>
Inherited from: this
Creates a promise that resolves once the component is fully loaded.
- Returns
- Promise<this>
- Example
- const arcgisAssistantMessageReadAloud = document.createElement("arcgis-assistant-message-read-aloud");document.body.append(arcgisAssistantMessageReadAloud);await arcgisAssistantMessageReadAloud.componentOnReady();console.log("arcgis-assistant-message-read-aloud is ready to go!");