Example #1
0
        /// <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);
        }
Example #2
0
        /// <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));
        }