Closed audreytimbani closed 2 months ago
For the speakText
and speakAudio
methods, you can provide your callback function as the third parameter to get the word currently being spoken. Here’s a simple example:
head.speakText("Hello World. I'm John.", {}, (word) => {
console.log(word);
});
Thanks
Let's suppose that the avatar has to say: ‘Hello World . I'm John’, is there a way of knowing which word the avatar is on so that it can be displayed on the screen in real time?