次の方法で共有


SayAs.Format プロパティ

定義

プロンプトの SSML マークアップ言語のsay-as要素のformat属性の値を取得または設定します。

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 プロパティは、SayAs インスタンスのFormat プロパティの値を取得または設定します。

たとえば、プロンプトに "The time is <say-as interpret-as="time"> 05:00 </say-as>" という語句が含まれている場合があります。 この例では、 05:00 は "5 時" または "5 AM" または "oh five hundred" として読み上げることができました。 Format プロパティを使用すると、interpret-as属性の値を拡張して、読み上げる時間形式を指定できます。 interpret-as属性の値が "time:24hour" の場合、SpeechSynthesizerは "oh five hundred" と読み上げられます。 interpret-as属性の値が "time:12hour" の場合、SpeechSynthesizerは "5 A M" と読み上げられます。

適用対象