Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SayAs Enumeration

Enumerates the content types for the speaking of elements such as times, dates, and currency.

Namespace:  System.Speech.Synthesis
Assembly:  System.Speech (in System.Speech.dll)
public enum SayAs
Member nameDescription
SpellOutSpell the word or phrase. For example, say “clock” as “C L O C K”.
NumberOrdinalSpeak a number as an ordinal number. For example, speak "3rd" as "third".
NumberCardinalSpeak a number as a cardinal number. For example, speak "3" as "three".
DateSpeak a number sequence as a date. For example, speak “05/19/2004” or “19.5.2004” as “may nineteenth two thousand four”.
DayMonthYearSpeak a number sequence as a date including the day, month, and year. For example, speak “12/05/2004” as “May twelfth two thousand four”.
MonthDayYearSpeak a number sequence as a date including the day, month, and year. For example, speak “12/05/2004” as “December fifth two thousand four”.
YearMonthDaySpeak a number sequence as a date including the day, month, and year. For example, speak “2004/05/12” as “May twelfth two thousand four”.
YearMonthSpeak a number sequence as a year and month. For example, speak “2004/05” as “May two thousand four”.
MonthYearSpeak a number sequence as a month and year. For example, speak “05/2004” as “May two thousand four”.
MonthDaySpeak a number sequence as a month and day. For example, speak “05/12” as “may twelfth”, and speak “12/5” as “December 5th”.
DayMonthSpeak a number sequence as a day and month. For example, speak “12/05” as “May twelfth”, and speak “05/12” as “December 5th”.
YearSpeak a number as a year. For example, speak “1998” as “nineteen ninety-eight”.
MonthSpeak a word as a month. For example, speak “June” as “June”.
DaySpeak a number as the day in a date. For example, speak “3rd” as “third”.
TimeSpeak a number sequence as a time. For example, speak “9:45” as “nine forty-five”, and speak “9:45am” as “nine forty-five A M”.
Time24Speak a number sequence as a time using the 24-hour clock. For example, speak “18:00” as “eighteen hundred hours”.
Time12Speak a number sequence as a time using the 12-hour clock. For example, speak “03:25” as “three twenty-five”.
TelephoneSpeak a number sequence as a U.S. telephone number. For example, speak “(306) 555-1212” as “Area code three zero six five five five one two one two”.
TextSpeak the word or phrase as text. For example, speak “timeline” as “timeline”.

The AppendTextWithHint(String, SayAs) method uses members of the SayAs enumeration to specify the content type of the appended text, which the speech synthesis engine can use to inform its pronunciation.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.