Original Discord Post by samuelr.1924 | 2024-08-22 07:34:38
Hello, is there any way I can see what the avatar will say,
then trigger an event to allow the avatar to say it or not ?
Original Discord Post by samuelr.1924 | 2024-08-22 07:34:38
Hello, is there any way I can see what the avatar will say,
then trigger an event to allow the avatar to say it or not ?
Reply by k3kalinix | 2024-08-22 21:24:16
Hello <@1042701712554741830>,
Reply by k3kalinix | 2024-08-22 21:26:13
You can check this Documentation, On Text Received:
Embedded Content:
Convai Chatbot | API Docs
Actor component for the AI character
Link: Convai Chatbot | Documentation
Reply by samuelr.1924 | 2024-08-22 21:42:23
the On Text Received is triggered when the Invoke Speech is triggered.
So the text is displayed at the same time the audio is being played.
Reply by samuelr.1924 | 2024-08-22 21:42:59
I’d like to get the text first, then trigger the invoke speech if i want, so it says the text
Reply by k3kalinix | 2024-08-22 21:43:50
You have to edit our core blueprints.
cc: <@365628745886859267>
He can give some tips.
Reply by freezfast | 2024-08-23 11:58:47
I see, there’s no straight way for that, but you can try to delete the last chat message on the UI and use the function named InterruptSpeech with zero time delay to stop the character from talking as soon as possible
Reply by freezfast | 2024-08-23 11:59:36
You can also set the audio volume to zero on the character Chatbot component and disable the lipsync, so he would not produce any audio or lipsync
Reply by freezfast | 2024-08-23 11:59:57
Let me know if you need an example blueprint on doing that
Reply by samuelr.1924 | 2024-08-23 12:30:05
I understand the idea, but how to be sure that once I approved the text and when i will trigger the InvokeSpeech again, it will says the same and not generate a new one ? <@365628745886859267>
Reply by freezfast | 2024-08-23 18:43:38
I see, so then let it speak out what it have and as soon as you find the word you’re looking for in OnTextReceived
then we remove the chat message and run InterruptSpeech to halt the character at once. Sorry if this looks like a hack but if you would like to explain your use case a bit more I might be able to show you other features to help with that
Reply by samuelr.1924 | 2024-08-26 13:21:48
I am trying to check what the avatar will say, to moderate it live, then once approve, let the avatar talk. A simple TTS should do the trick, but it’s only in entreprise plan apparently.
This conversation happened on the Convai Discord Server, so this post will be closed.