// Called by button
 // Call by SPACE key
 public void StartListening()
 {
     Debug.Log("StartListening");
     aud = GetComponent <AudioSource>();
     apiAiUnity.StartListening(aud);
     // todo : show visual feedback on listening to voice
 }
Esempio n. 2
0
    public void StartListening()
    {
        Debug.Log("StartListening");

        aud = GetComponent <AudioSource>();
        apiAiUnity.StartListening(aud);
    }
Esempio n. 3
0
    public void StartListening()
    {
        Debug.Log("StartListening");

        if (answerTextField != null)
        {
            answerTextField.text = "Listening...";
        }

        aud = GetComponent <AudioSource>();
        apiAiUnity.StartListening(aud);
    }
Esempio n. 4
0
 public void StartListening()
 {
     aud = GetComponent <AudioSource>();
     apiAiUnity.StartListening(aud);
 }