PromptBuilder.AppendSsmlMarkup(String) Method
Definition
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)
Parameters
- ssmlMarkup
- String
A string containing SSML markup.
Remarks
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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기