To listening need to call StartListening() method exposed by VoiceManager.
usingUnityEngine;usingJMRSDK;publicclassJMRDemoVoiceExample:MonoBehaviour{publicvoidStartListening() { // added editor check as this can’t feature can’t tested in editorif (!Application.isEditor)JMRVoiceManager.Instance.StartListening(); }publicvoidCancelListening() {if (!Application.isEditor)JMRVoiceManager.Instance.CancelListening(); }}
How to Stop listening
public void StopListening();
To listening need to call StopListening() method exposed by VoiceManager.
usingUnityEngine;usingJMRSDK;publicclassJMRDemoVoiceExample:MonoBehaviour{publicvoidStopListening() { // added editor check as this can’t feature can’t be tested in editorif (!Application.isEditor)JMRVoiceManager.Instance.StopListening(); }}
How to Cancel listening
public void CancelListening();
To listening need to call CancelListening() method exposed by the VoiceManager.
usingUnityEngine;usingJMRSDK;publicclassJMRDemoVoiceExample:MonoBehaviour{publicvoidCancelListening() { // added editor check as this can’t feature can’t be tested in the editorif (!Application.isEditor)JMRVoiceManager.Instance.CancelListening(); }}