Hosted Experience
Events
Speech Events
2min
it is possible to inject "speech events" into your digital human responses and have the event trigger in your front end web page and the precise time it is spoken by your digital human for example, if the digital human is instructed to respond with the following message, your web client will receive speechevent messages at the precise time the tags are spoken in the response hello there, i am a digital human \<uneeq\ custom event name="a test event" /> what can i help you with today? when the above text is spoken by a digital human, either with speak() or as a result of a chatprompt the following event will occur in your front end client window\ addeventlistener('uneeqmessage', (event) => { switch (msg uneeqmessagetype) { 	 case 'speechevent' 	 const eventvalue = msg speechevent param value 	 console log('speechevent value ', eventvalue) 	 break 	 	 default 	 break 	} }) example use case you may choose to use speechevent messages to synchronise what the digital human is saying with what is happening on your web page you could use these events to display an image or scroll to certain content at the precise time the digital human is speaking about it