speak()

To have the AI Avatar speak a message, use speak(). This triggers the synthesize of speech video.

Text Input

room.speak({ text: "Hello. How can I assist you today?" });

Streaming Input

In addition to standard text input, streaming input via an AsyncIterable is supported.

// your AsyncIterable
const textStream = getAsyncIterable(response);

await room.speak({
  isStream: true,
  stream: textStream,
});

To learn more and see full feature, see the following topics:

speak()

Reference for instance method speak().

speak()

To have the AI Avatar speak a message, use speak(). This triggers the synthesize of speech video.

Text Input

room.speak({ text: "Hello. How can I assist you today?" });

Streaming Input

In addition to standard text input, streaming input via an AsyncIterable is supported.

// your AsyncIterable
const textStream = getAsyncIterable(response);

await room.speak({
  isStream: true,
  stream: textStream,
});

To learn more and see full feature, see the following topics:

speak()

Reference for instance method speak().