PXCVoiceRecognition instance

PXCVoiceRecognition instance

Hi, Guru

Why Voice recognition doesn't work when PXCVoiceRecognition instance created globally. Is this expected result?

// Create PXCVoiceRecognition instance
 PXCSmartPtr<PXCVoiceRecognition> vc;

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

PXCSmartPtr<PXCVoiceRecognition> vc does not actually create an instance of the interface. The statement only initializes a zero-pointer. You still have to initialize it somewhere by calling CreateImpl from the SDK session.

Leave a Comment

Please sign in to add a comment. Not a member? Join today