Kongsi melalui


SayAs.Format Property

Definition

Gets or sets the value of the format attribute for a say-as element in the SSML markup language of a prompt.

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

Property Value

Remarks

The FragmentState.SayAs property gets or sets the value for the Format property in a SayAs instance.

For example, a prompt may contain the phrase "The time is <say-as interpret-as="time"> 05:00 </say-as>". In this example, 05:00 could be spoken as "five o'clock" or "five AM" or "oh five hundred". The Format property allows the value of the interpret-as attribute to be extended to specify which time format to speak. If the value for the interpret-as attribute is "time:24hour", the SpeechSynthesizer speaks "oh five hundred". If the value for the interpret-as attribute is "time:12hour", the SpeechSynthesizer speaks "five A M".

Applies to