Esempio n. 1
0
        /// <summary>
        /// Restores default settings
        /// </summary>
        public void RestoreDefaults()
        {
            var settings = new SAPISettings();

            Synthesizer.Rate   = settings.Rate;
            Synthesizer.Volume = settings.Volume;
        }
Esempio n. 2
0
        /// <summary>
        /// Loads TTS settings from the settings file
        /// </summary>
        /// <returns>true on success, false on failure</returns>
        public bool LoadSettings()
        {
            SAPISettings.PreferencesFilePath = UserManager.GetFullPath(settingsFileName);
            SAPISettings = SAPISettings.Load();

            return(true);
        }
Esempio n. 3
0
        /// <summary>
        /// Loads TTS settings from the settings file
        /// </summary>
        /// <returns>true on success, false on failure</returns>
        public bool LoadSettings()
        {
            SAPISettings.PreferencesFilePath = UserManager.GetFullPath(settingsFileName);
            SAPISettings = SAPISettings.Load();

            return true;
        }
Esempio n. 4
0
        /// <summary>
        /// Restores default settings
        /// </summary>
        public void RestoreDefaults()
        {
            var settings = new SAPISettings();

            Synthesizer.Rate = settings.Rate;
            Synthesizer.Volume = settings.Volume;
        }
Esempio n. 5
0
        /// <summary>
        /// Restores default settings
        /// </summary>
        public void RestoreDefaults()
        {
            string defaultVoice = GetVoices().FirstOrDefault();
            SAPISettings settings = new SAPISettings(defaultVoice);

            Synthesizer.Rate = settings.Rate;
            Synthesizer.Volume = settings.Volume;
            Synthesizer.SelectVoice(settings.Voice);
        }