コード例 #1
0
ファイル: speechContoller.cs プロジェクト: Nitacu/WarioVoice
    // Use this for initialization


    void Awake()
    {
        initSpech();
        //AndroidPermissionsUsageExample permision = GameObject.FindObjectOfType<AndroidPermissionsUsageExample>();
        //permision.OnBrowseGalleryButtonPress();
        instance = this;
    }
コード例 #2
0
ファイル: speechContoller.cs プロジェクト: Nitacu/WarioVoice
    public void onError(string errorMessage)
    {
        //speechContoller control = GameObject.FindObjectOfType<speechContoller>();
        speechContoller control = speechContoller.getInstance();

        Debug.Log("ENTER callback onError: " + errorMessage);
        control.speechReturned.text = errorMessage;
    }
コード例 #3
0
ファイル: speechContoller.cs プロジェクト: Nitacu/WarioVoice
    public void onStart(string startmessage)
    {
        //speechContoller control = GameObject.FindObjectOfType<speechContoller>();
        speechContoller control = speechContoller.getInstance();

        Debug.Log("ENTER callback onStart: " + startmessage);
        control.speechReturned.text = startmessage;
    }
コード例 #4
0
ファイル: speechContoller.cs プロジェクト: Nitacu/WarioVoice
 public static speechContoller getInstance()
 {
     {
         if (instance == null)
         {
             instance = new speechContoller();
         }
         return(instance);
     }
 }
コード例 #5
0
ファイル: speechContoller.cs プロジェクト: Nitacu/WarioVoice
    public void onSuccess(string textSpeech)
    {
        //speechContoller control = GameObject.FindObjectOfType<speechContoller>();
        speechContoller control = speechContoller.getInstance();

        Debug.Log("ENTER callback onSuccess: " + textSpeech);
        control.settext(textSpeech);

        //BotInput chat = GameObject.FindObjectOfType<BotInput>();
        BotInput chat  = BotInput.getInstance();
        string   texto = textSpeech;

        chat.SendQuestionToRobotFromSpeech(texto);
    }