SayAs.Format 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定提示詞中 SSML 標記語言元素的屬性format值say-as。
public:
property System::String ^ Format { System::String ^ get(); void set(System::String ^ value); };
public string? Format { get; set; }
public string Format { get; set; }
member this.Format : string with get, set
Public Property Format As String
屬性值
備註
屬性在FragmentState.SayAs某個Format實例中取得或設定該SayAs屬性的值。
例如,提示可能包含「時間是 <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」。