Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

PromptBuilder Members

Include Protected Members
Include Inherited Members

Creates an empty Prompt object and provides methods for adding content, selecting voices, controlling voice attributes, and controlling the pronunciation of spoken words.

The PromptBuilder type exposes the following members.

Constructors

  Name Description
Public method PromptBuilder() Creates a new instance of the PromptBuilder class.
Public method PromptBuilder(CultureInfo) Creates a new instance of the PromptBuilder class and specifies a culture.

Top

Properties

  Name Description
Public property Culture Gets or sets the culture information for the PromptBuilder object.
Public property Id Gets or sets a value that is the identifier for a PromptBuilder instance.
Public property IsEmpty Gets whether the PromptBuilder is empty.

Top

Methods

  Name Description
Public method AddPromptDatabase
Public method AppendAudio(String) Appends the specified audio file to the PromptBuilder.
Public method AppendAudio(Uri) Appends the audio file at the specified URI to the PromptBuilder.
Public method AppendAudio(Uri, String) Appends the specified audio file and alternate text to the PromptBuilder.
Public method AppendBookmark Appends a bookmark to the PromptBuilder object.
Public method AppendBreak() Appends a break to the PromptBuilder object.
Public method AppendBreak(TimeSpan) Appends a break of the specified duration to the PromptBuilder object.
Public method AppendBreak(PromptBreak) Appends a break of the specified strength (duration) to the PromptBuilder object.
Public method AppendPromptBuilder Appends a PromptBuilder object to a PromptBuilder object.
Public method AppendSsml Appends the specified XML file containing SSML to the PromptBuilder object.
Public method AppendSsmlMarkup Appends the specified string containing SSML markup into the PromptBuilder object.
Public method AppendText(String) Specifies text to append to the PromptBuilder object.
Public method AppendText(String, PromptEmphasis) Appends text to the PromptBuilder object and specifies the degree of emphasis for the text.
Public method AppendText(String, PromptRate) Appends text to the PromptBuilder object and specifies the speaking rate for the text.
Public method AppendText(String, PromptVolume) Appends text to the PromptBuilder object and specifies a volume for the text to be spoken.
Public method AppendText(String, []) Appends text to the PromptBuilder object and specifies formatting for the text.
Public method AppendTextWithAlias Appends text to the PromptBuilder object and specifies the alias text to be spoken in place of the appended text.
Public method AppendTextWithHint(String, SayAs) Appends text to the PromptBuilder object and specifies the content type using a member of the SayAs enumeration.
Public method AppendTextWithHint(String, String) Appends text to the PromptBuilder object and a String that specifies the content type of the text.
Public method AppendTextWithPronunciation Appends text to the PromptBuilder object and specifies the pronunciation for the text.
Public method ClearContent Clears the content from the PromptBuilder object.
Public method EndParagraph Specifies the end of a paragraph in the PromptBuilder object.
Public method EndSentence Specifies the end of a sentence in the PromptBuilder object.
Public method EndStyle Specifies the end of a style in the PromptBuilder object.
Public method EndVoice Specifies the end of use of a voice in the PromptBuilder object.
Public method Equals (inherited from Object)
Protected method Finalize (inherited from Object)
Public method GetHashCode (inherited from Object)
Public method GetType (inherited from Object)
Protected method MemberwiseClone (inherited from Object)
Public method RemovePromptDatabase
Public method SetText(String) Replaces the current content in a PromptBuilder object with a string.
Public method SetText(String, []) Replaces the current content in a PromptBuilder object with a string and specifies formatting for the contents of the string.
Public method StartParagraph() Specifies the start of a paragraph in the PromptBuilder object.
Public method StartParagraph(CultureInfo) Specifies the start of a paragraph in the specified culture in the PromptBuilder object.
Public method StartSentence() Specifies the start of a sentence in the PromptBuilder object.
Public method StartSentence(CultureInfo) Specifies the start of a sentence in the specified culture in the PromptBuilder object.
Public method StartStyle Specifies the start of a style in the PromptBuilder object.
Public method StartVoice(CultureInfo) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies the culture of the voice to use.
Public method StartVoice(String) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies the name of the voice to use.
Public method StartVoice(VoiceGender) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies the gender of the voice to use.
Public method StartVoice(VoiceInfo) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies criteria for the new voice.
Public method StartVoice(VoiceGender, VoiceAge) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies the gender and the age of the voice to use.
Public method StartVoice(VoiceGender, VoiceAge, Int32) Instructs the synthesizer to change the voice in the PromptBuilder object and specifies its gender, age, and a preferred voice that matches the specified gender and age.
Public method ToString (inherited from Object)
Public method ToXml Returns the SSML generated from the PromptBuilder object.

Top

See Also

Reference

PromptBuilder Class

Microsoft.Speech.Synthesis Namespace