SayAs.Format Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om