SayAs.InterpretAs Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the value of the interpret-as attribute for a say-as element in the SSML markup language of a prompt.

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

public string InterpretAs { get; set; }

Property Value

Type: System.String

The FragmentState.SayAs property gets or sets the value for the InterpretAs property in a SayAs instance.

The SpeechSynthesizer uses the content type indicated by the InterpretAs property to determine how to render specified text.

For example, the name Edgar could be spoken as a name: “My name is Edgar”. Or it could be spelled out with letters, as specified with the interpret-as attribute in this sentence: “My name is <say-as interpret-as=”spell-out”> Edgar </say-as>.” In this case, the SpeechSynthesizer speaks Edgar as “E D G A R”.

.NET Framework
Available since 3.0
Return to top
Show: