Κοινή χρήση μέσω


FragmentState.SayAs Property

Definition

Returns information about the context for the generation of speech from text.

public:
 property System::Speech::Synthesis::TtsEngine::SayAs ^ SayAs { System::Speech::Synthesis::TtsEngine::SayAs ^ get(); };
public System.Speech.Synthesis.TtsEngine.SayAs SayAs { get; }
member this.SayAs : System.Speech.Synthesis.TtsEngine.SayAs
Public ReadOnly Property SayAs As SayAs

Property Value

Returns a value SayAs instance if the SSML used by a speech synthesis engine contains detailed information about the context to be used to generate speech, otherwise null.

Remarks

The information returned by SayAs corresponds to the <say-as> tag and its attributes in the SSML specification, and can specify:

  • The content type (such as currency, date, or address) or language construct represented by TextToSpeak property of a TextFragment.

  • Optional formatting information to handle the content type represented by TextToSpeak property of a TextFragment, for example, a date syntax.

  • The detail to be used in generating speech from the TextToSpeak property of a TextFragment, for example, whether to explicitly render punctuation.

Applies to