PromptStyle.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Synthesis / PromptStyle.cs / 1 / PromptStyle.cs

                            //------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------- 

using System; 
 
namespace System.Speech.Synthesis
{ 
    /// 
    /// TODOC
    /// 
    [Serializable] 
    public class PromptStyle
    { 
        //******************************************************************* 
        //
        // Constructors 
        //
        //*******************************************************************

        #region Constructors 

        ///  
        /// TODOC 
        /// 
        public PromptStyle () 
        {
        }

        ///  
        /// TODOC
        ///  
        ///  
        public PromptStyle (PromptRate rate)
        { 
            Rate = rate;
        }

        ///  
        /// TODOC
        ///  
        ///  
        public PromptStyle (PromptVolume volume)
        { 
            Volume = volume;
        }

        ///  
        /// TODOC
        ///  
        ///  
        public PromptStyle (PromptEmphasis emphasis)
        { 
            Emphasis = emphasis;
        }

        #endregion 

        //******************************************************************** 
        // 
        // Public Properties
        // 
        //*******************************************************************

        #region public Properties
 
        // 
 
        ///  
        /// TODOC
        ///  
        /// 
        public PromptRate Rate
        {
            get 
            {
                return _rate; 
            } 
            set
            { 
                _rate = value;
            }
        }
 
        /// 
        /// TODOC 
        ///  
        /// 
        public PromptVolume Volume 
        {
            get
            {
                return _volume; 
            }
            set 
            { 
                _volume = value;
            } 
        }

        /// 
        /// TODOC 
        /// 
        ///  
        public PromptEmphasis Emphasis 
        {
            get 
            {
                return _emphasis;
            }
            set 
            {
                _emphasis = value; 
            } 
        }
 
        #endregion

        //********************************************************************
        // 
        // Private Fields
        // 
        //******************************************************************** 

        #region Private Fields 

        private PromptRate _rate = PromptRate.NotSet;
        private PromptVolume _volume = PromptVolume.NotSet;
        private PromptEmphasis _emphasis = PromptEmphasis.NotSet; 

        #endregion 
    } 

    //******************************************************************* 
    //
    // Public Enums
    //
    //******************************************************************** 

    #region Public Enums 
 
    /// 
    /// TODOC 
    /// 
    public enum SayAs
    {
        ///  
        /// TODOC
        ///  
        SpellOut, 
        /// 
        /// TODOC 
        /// 
        NumberOrdinal,
        /// 
        /// TODOC 
        /// 
        NumberCardinal, 
        ///  
        /// TODOC
        ///  
        Date,
        /// 
        /// TODOC
        ///  
        DayMonthYear,
        ///  
        /// TODOC 
        /// 
        MonthDayYear, 
        /// 
        /// TODOC
        /// 
        YearMonthDay, 
        /// 
        /// TODOC 
        ///  
        YearMonth,
        ///  
        /// TODOC
        /// 
        MonthYear,
        ///  
        /// TODOC
        ///  
        MonthDay, 
        /// 
        /// TODOC 
        /// 
        DayMonth,
        /// 
        /// TODOC 
        /// 
        Year, 
        ///  
        /// TODOC
        ///  
        Month,
        /// 
        /// TODOC
        ///  
        Day,
        ///  
        /// TODOC 
        /// 
        Time, 
        /// 
        /// TODOC
        /// 
        Time24, 
        /// 
        /// TODOC 
        ///  
        Time12,
        ///  
        /// TODOC
        /// 
        Telephone,
 
#if SPEECHSERVER
        ///  
        /// TODOC 
        /// 
        Currency, 
#endif
        /// 
        /// TODOC
        ///  
        Text
    } 
 
    /// 
    /// TODOC 
    /// 
    public enum VoiceGender
    {
        ///  
        /// TODOC
        ///  
        NotSet, 
        /// 
        /// TODOC 
        /// 
        /// 
        /// TODOC
        ///  
        Male,
        ///  
        /// TODOC 
        /// 
        Female, 
        /// 
        /// TODOC
        /// 
        Neutral 
    }
 
    ///  
    /// TODOC
    ///  
    public enum VoiceAge
    {
        /// 
        /// TODOC 
        /// 
        NotSet, 
        ///  
        /// TODOC
        ///  
        Child=10,
        /// 
        /// TODOC
        ///  
        Teen=15,
        ///  
        /// TODOC 
        /// 
        Adult=30, 
        /// 
        /// TODOC
        /// 
        Senior=65 
    }
 
    ///  
    /// TODOC
    ///  
    public enum PromptRate
    {
        /// 
        /// TODOC 
        /// 
        NotSet, 
        ///  
        /// TODOC
        ///  
        ExtraFast,
        /// 
        /// TODOC
        ///  
        Fast,
        ///  
        /// TODOC 
        /// 
        Medium, 
        /// 
        /// TODOC
        /// 
        Slow, 
        /// 
        /// TODOC 
        ///  
        ExtraSlow
    } 

    /// 
    /// TODOC
    ///  
    public enum PromptVolume
    { 
        ///  
        /// TODOC
        ///  
        NotSet,
        /// 
        /// TODOC
        ///  
        Silent,
        ///  
        /// TODOC 
        /// 
        ExtraSoft, 
        /// 
        /// TODOC
        /// 
        Soft, 
        /// 
        /// TODOC 
        ///  
        Medium,
        ///  
        /// TODOC
        /// 
        Loud,
        ///  
        /// TODOC
        ///  
        ExtraLoud, 
        /// 
        /// TODOC 
        /// 
        Default
    }
 
    /// 
    /// TODOC 
    ///  
    public enum PromptEmphasis
    { 
        /// 
        /// TODOC
        /// 
        NotSet, 
        /// 
        /// TODOC 
        ///  
        Strong,
        ///  
        /// TODOC
        /// 
        Moderate,
        ///  
        /// TODOC
        ///  
        None, 
        /// 
        /// TODOC 
        /// 
        Reduced
    }
 
    /// 
    /// TODOC 
    ///  
    public enum PromptBreak
    { 
        /// 
        /// TODOC
        /// 
        None, 
        /// 
        /// TODOC 
        ///  
        ExtraSmall,
        ///  
        /// TODOC
        /// 
        Small,
        ///  
        /// TODOC
        ///  
        Medium, 
        /// 
        /// TODOC 
        /// 
        Large,
        /// 
        /// TODOC 
        /// 
        ExtraLarge 
    } 

    #endregion 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK