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); }
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; }