FragmentState.SayAs Property

 

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

Namespace:   System.Speech.Synthesis.TtsEngine
Assembly:  System.Speech (in System.Speech.dll)

public SayAs SayAs { get; internal set; }

Property Value

Type: System.Speech.Synthesis.TtsEngine.SayAs

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.

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.

.NET Framework
Available since 3.0
Return to top
Show: