Unity plugin - hands free mode - v4.0.0

Hi!
Trying to use convai for a specific utility app, made with Unity, mostly working with steamvr overlays. We want to have an AI companion, that can talk, and trigger different Unity actions, based on what the user is saying. From looking at youtube, and some docs, it seems possible with convai.
Installing the package was straightforward, loading the demo scene just works. However, it starts recording the mic automatically.
Is there a way to disable this hands-free mode, and turn on the character (both visually, and conversationally) manually, from a script, or with an UI button?

Thanks,

Dániel

Hi Danel_Zettish,

Thanks for connecting us.

You can toggle the microphone using the ConvaiRoomManager. Below is a simple example:

public class MicInput : MonoBehaviour
{
    public ConvaiRoomManager _roomManager;

    public void ToggleMic(bool isOn)
    {
        _roomManager.SetMicMuted(isOn);
    }
}

Let me know if you need help integrating this further.

Best,
Convai Support Team.

Hi,
Thank you for your fast response. Didnt think of the mute mic, that’s a good idea, works well.

Can you also help me with the actions, please? On the docs it says I should as something called action handler, but I do not find that component. I’ve added 2 simple actions under “embodied actions” in the legacy dashboard.

Thanks,

Dániel

V4 doesn’t support actions.

1 Like