Export (0) Print
Expand All

PromptBuilder.AppendSsmlMarkup Method

Appends the specified string containing SSML markup to the PromptBuilder object.

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

public void AppendSsmlMarkup(
	string ssmlMarkup
)

Parameters

ssmlMarkup
Type: System.String

A string containing SSML markup.

You must use the appropriate escape characters when appending SSML markup. Notice the backward-slashes preceding the quotation marks enclosing the value of the interpret-as attribute in the following example:

builder.AppendSsmlMarkup("<say-as interpret-as = \"characters\"> chair </say-as>");
NoteNote

The string used as an argument to AppendSsmlMarkup cannot include a speak element.

When using AppendSsmlMarkup to specify inline pronunciations in a phoneme element, you can use phones from any of the following phonetic alphabets, provided that the current speech engine supports it:

  • International Phonetic Alphabet (IPA)

  • Universal Phone Set (UPS)

  • SAPI Phone Set

Any SSML-compliant speech engine will speak phones from the IPA.

You can also append a file containing SSML markup using one of the AppendSsml methods. To append text to be spoken that is not formatted with markup language, use one of the AppendText, AppendTextWithAlias, AppendTextWithHint, or AppendTextWithPronunciation methods.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft