예제 #1
0
        private void Start()
        {
            stateText.text = "初始化语音识别!";

            m_BaiduSpeechManager = FindObjectOfType <BaiduSpeechManager>();
            m_BaiduSpeechManager.AsrInit();//初始化语音识别
            m_BaiduSpeechManager.onSpeechEventListener += OnSpeechEventListener;

            m_BaiduSpeechManager.RequestPermissions(100, AndroidPermission.RECORD_AUDIO);
            //Debug.Log("是否有录音权限:"+m_BaiduSpeechManager.CheckPermissions(AndroidPermission.RECORD_AUDIO));
        }
예제 #2
0
 private void Start()
 {
     m_BaiduSpeechManager = FindObjectOfType <BaiduSpeechManager>();
     m_BaiduSpeechManager.RequestPermissions(100, AndroidPermission.RECORD_AUDIO);
 }