SayAs 枚举

定义

枚举元素朗读的内容类型如时间、日期和货币。Enumerates the content types for the speaking of elements such as times, dates, and currency.

public enum class SayAs
public enum SayAs
type SayAs = 
Public Enum SayAs
继承

字段

Date 3

将数序列作为日期进行朗读。Speak a number sequence as a date. 例如,把“05/19/2004”或“19.5.2004”读作为“may nineteenth two thousand four”。For example, speak "05/19/2004" or "19.5.2004" as "may nineteenth two thousand four".

Day 13

将数字作为日期进行朗读。Speak a number as the day in a date. 例如,把“3rd”读为“third"。For example, speak "3rd" as "third".

DayMonth 10

将数序列作为日和月进行朗读。Speak a number sequence as a day and month. 例如,把“12/05”读作“May twelfth”,并把“05/12”读作“December 5th”。For example, speak "12/05" as "May twelfth", and speak "05/12" as "December 5th".

DayMonthYear 4

将数序列作为日期(包括日、月、年)进行朗读。Speak a number sequence as a date including the day, month, and year. 例如,把“12/05/2004”读作“May twelfth two thousand four”。For example, speak "12/05/2004" as "May twelfth two thousand four".

Month 12

将字作为月份进行朗读。Speak a word as a month. 例如,把“June”读作“June”。For example, speak "June" as "June".

MonthDay 9

将数序列作为日和月进行朗读。Speak a number sequence as a month and day. 例如,把“05/12”读为“may twelfth”,以及把“12/5”读作“December 5th”。For example, speak "05/12" as "may twelfth", and speak "12/5" as "December 5th".

MonthDayYear 5

将数序列作为日期(包括日、月、年)进行朗读。Speak a number sequence as a date including the day, month, and year. 例如,把“12/05/2004”读作“December fifth two thousand four”。For example, speak "12/05/2004" as "December fifth two thousand four".

MonthYear 8

将数序列作为月和年进行朗读。Speak a number sequence as a month and year. 例如,把“05/2004”读作“May two thousand four”。For example, speak "05/2004" as "May two thousand four".

NumberCardinal 2

将数字作为基数进行朗读。Speak a number as a cardinal number. 例如,把“3”读为“three"。For example, speak "3" as "three".

NumberOrdinal 1

将数字作为序号进行朗读。Speak a number as an ordinal number. 例如,把“3rd”读为“third"。For example, speak "3rd" as "third".

SpellOut 0

拼写单词或短语。Spell the word or phrase. 例如,把“clock”读作“C L O C K”。For example, say "clock" as "C L O C K".

Telephone 17

将数序列作为美国电话号码进行朗读。Speak a number sequence as a U.S. telephone number. 例如,把“(306) 555-1212”读作“Area code three zero six five five five one two one two”。For example, speak "(306) 555-1212" as "Area code three zero six five five five one two one two".

Text 18

将字或短语作为文本进行朗读。Speak the word or phrase as text. 例如,把“timeline”读作“timeline”。For example, speak "timeline" as "timeline".

Time 14

将数序列作为时间进行朗读。Speak a number sequence as a time. 例如,把“9:45”读作“nine forty-five”,并把“9:45 am”读作“nine forty-five A M”。For example, speak "9:45" as "nine forty-five", and speak "9:45am" as "nine forty-five A M".

Time12 16

作为使用 12 小时制的时钟朗读数字序列。Speak a number sequence as a time using the 12-hour clock. 例如,把“03:25”读为“three twenty-five”。For example, speak "03:25" as "three twenty-five".

Time24 15

将数字序列读作使用 24 小时制的时间。Speak a number sequence as a time using the 24-hour clock. 例如,把“18:00”读作“eighteen hundred hours”。For example, speak "18:00" as "eighteen hundred hours".

Year 11

将数字作为年份进行朗读。Speak a number as a year. 例如,把“1998”读作“nineteen ninety-eight”。For example, speak "1998" as "nineteen ninety-eight".

YearMonth 7

将数序列作为月和年进行朗读。Speak a number sequence as a year and month. 例如,把“2004/05”读作“May two thousand four”。For example, speak "2004/05" as "May two thousand four".

YearMonthDay 6

将数序列作为日期(包括日、月、年)进行朗读。Speak a number sequence as a date including the day, month, and year. 例如,把“2004/05/12”读作“May twelfth two thousand four”。For example, speak "2004/05/12" as "May twelfth two thousand four".

注解

方法使用SayAs枚举的成员指定追加文本的内容类型, 语音合成引擎可使用该内容类型来通知其发音。 AppendTextWithHintThe AppendTextWithHint 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.

适用于