Kinect.SpeechErrorHandler.GetSapiErrorMessage C# (CSharp) Method

GetSapiErrorMessage() public method

Gets the error message for the SAPI error code.
public GetSapiErrorMessage ( int hr ) : string
hr int SAPI error code
return string
        public string GetSapiErrorMessage(int hr)
        {
            uint uhr = (uint)hr;

            if (hresult2message.ContainsKey(uhr))
            {
                return hresult2message[uhr];
            }

            return "0x" + hr.ToString("X");
        }
SpeechErrorHandler