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)); }
private void Start() { m_BaiduSpeechManager = FindObjectOfType <BaiduSpeechManager>(); m_BaiduSpeechManager.RequestPermissions(100, AndroidPermission.RECORD_AUDIO); }