Represents an utterance event containing spoken or written dialog This is the primary communication event between conversants
const utteranceEvent = new UtteranceEvent({ dialogEvent: { speakerUri: 'tag:example.com,2025:user1', features: { text: { mimeType: 'text/plain', tokens: [{ value: 'Hello world' }] } } }, to: { speakerUri: 'tag:example.com,2025:agent1' }}); Copy
const utteranceEvent = new UtteranceEvent({ dialogEvent: { speakerUri: 'tag:example.com,2025:user1', features: { text: { mimeType: 'text/plain', tokens: [{ value: 'Hello world' }] } } }, to: { speakerUri: 'tag:example.com,2025:agent1' }});
Creates a new UtteranceEvent instance
UtteranceEvent configuration options
Error if dialogEvent is missing
Readonly
Optional
Convert to JSON string
Convert to plain object
Static
Represents an utterance event containing spoken or written dialog This is the primary communication event between conversants
Example