Share via


SayAs.Format 属性

定义

获取或设置提示的 SSML 标记语言中元素的 属性say-as的值format

public:
 property System::String ^ Format { System::String ^ get(); void set(System::String ^ value); };
public string Format { get; set; }
member this.Format : string with get, set
Public Property Format As String

属性值

注解

属性FragmentState.SayAs获取或设置 实例中FormatSayAs属性的值。

例如,提示可能包含短语“时间是 <say-as interpret-as="time"> 05:00 </say-as>”。 在此示例中, 05:00 可以说成“five o'clock”或“five AM”或“oh five hundred”。 属性 Format 允许扩展 属性的值 interpret-as ,以指定要说出的时间格式。 如果 属性的 interpret-as 值为“time:24hour”,则 SpeechSynthesizer 表示“oh five hundred”。 如果属性的 interpret-as 值为“time:12hour”,则 SpeechSynthesizer 表示“five A M”。

适用于