Activate Bool

How do I convert Bool from false to true using voice commands rather than key commands?

The animator seems to be set up fine because as soon as I click on the true Bool the animation plays.

C# code that I have so far does not work…

using System.Collections;
using System.Collections.Generic;
using HoloToolkit.Unity;
using UnityEngine;

public class CalgaryOneCameraOne : MonoBehaviour
{
    
public float speed;

    public void Update()
    {
        // Move from point a to point b by .2 each frame - assuming called in Update.
        // Will not overshoot the destination, so .2 is the max amount moved.
        transform.position = Vector3.MoveTowards(transform.position, new Vector3(2.25f, -12.94f, -8.9f), .01f);
    }

    public CalgaryOneCameraOne(float speed)
    {
        this.speed = speed;
    }
}

Thank you.
The code that I have there is for moving the camera. Sorry…
My question was exactly what you said. How do I set a Bool to true using voice command when its default is false?
I do not want to use a key to make this happen, but a voice command.

Good day.

You need to know (i’ve never think about this) how to make unity recognise your voice commands, once you get that, the rest will be very simple.

I recoomend you to wach some tutorials, like this one.

Bye!