Exemplo n.º 1
0
        private static bool InitializeSpeechKit()
        {
            try
            {
                // initialize the SpeechKit
                // the App Key is embedded in the SpeechKit objective-C library
                // to change App Keys this library needs to be updated and recompiled
                SpeechKit.Initialize(
                    NuanceServiceInfo.SpeechKitAppId,
                    NuanceServiceInfo.SpeechKitServer,
                    NuanceServiceInfo.SpeechKitPort,
                    NuanceServiceInfo.SpeechKitSsl,
                    new NuanceSpeechKitDelegate());
            }
            catch (Exception ex)
            {
                TraceHelper.AddMessage("Exception in SpeechKitInitialize: " + ex.Message);
                return(false);
            }

            //beep = (SKEarcon) SKEarcon.FromName(p);
            string path = Path.GetFullPath("beep.wav");

            beep = new SKEarcon(path);
            SpeechKit.SetEarcon(beep, SKEarconType.SKStartRecordingEarconType);

            return(true);
        }
Exemplo n.º 2
0
        private static bool InitializeSpeechKit()
        {
            try
            {
                // initialize the SpeechKit
                // the App Key is embedded in the SpeechKit objective-C library
                // to change App Keys this library needs to be updated and recompiled
                SpeechKit.Initialize(
                    NuanceServiceInfo.SpeechKitAppId,
                    NuanceServiceInfo.SpeechKitServer,
                    NuanceServiceInfo.SpeechKitPort,
                    NuanceServiceInfo.SpeechKitSsl,
                    new NuanceSpeechKitDelegate());
            }
            catch (Exception ex)
            {
                TraceHelper.AddMessage("Exception in SpeechKitInitialize: " + ex.Message);
                return false;
            }

            //beep = (SKEarcon) SKEarcon.FromName(p);
            string path = Path.GetFullPath("beep.wav");
            beep = new SKEarcon(path);
            SpeechKit.SetEarcon(beep, SKEarconType.SKStartRecordingEarconType);

            return true;
        }