Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Appends the specified string containing SSML markup to the PromptBuilder object.
public:
void AppendSsmlMarkup(System::String ^ ssmlMarkup);
public void AppendSsmlMarkup(string ssmlMarkup);
member this.AppendSsmlMarkup : string -> unit
Public Sub AppendSsmlMarkup (ssmlMarkup As 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>");
Note
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.
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in