/// <summary> /// Call this first. Initializes the speech engine /// </summary> /// <returns>true on success</returns> public bool Init() { LoadSettings(); _pronunciations.Load(UserManager.GetFullPath(SAPISettings.PronunciationsFile)); setSpeechSynthSettings(); return(true); }
/// <summary> /// Reads alternate pronunciations from the pronunciations file /// </summary> /// <returns>true on success</returns> private bool loadPronunciations(CultureInfo ci) { if (_pronunciations != null) { _pronunciations.Dispose(); } _pronunciations = new Pronunciations(); return(_pronunciations.Load(ci, SAPISettings.PronunciationsFile)); }