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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기