Abstract base class to be implemented by all text to speech synthesis engines.
Assembly: System.Speech (in System.Speech.dll)
Constructs a new instance ofbased on an appropriate Voice Token registry key.
|AddLexicon(Uri, String, ITtsEngineSite)|
Adds a lexicon to the SynthesizerVoice implemented by the currentinstance.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns the best matching audio output supported by a given synthesize engine response to a request to the synthesizer engine for the support of a particular output format.
Removes a lexicon currently loaded by the SynthesizerVoice implemented by the currentinstance.
|Speak(TextFragment, IntPtr, ITtsEngineSite)|
Renders specified TextFragment array in the specified output format.
Returns a string that represents the current object.(Inherited from Object.)
To construct a custom text to speech engine, an application must always implement a class derived from the abstract base class.
A properly registered implementation of System.Speech.Synthesis name space based applications.can then be used as a SynthesizerVoice by
Objects inheriting from TtsEngineSsml, AddLexicon, RemoveLexicon, M:System.Speech.Synthesis.TtsEngine.TtsEngineSsml.GetOutputFormat(System.Speech.Synthesis.TtsEngine.SpeakOutputFormat,System.IntPtr), and Speak.must override the following members:
The most important member of the Speak method.class to be implemented is the
The Speak method is called by the infrastructures text parser receiving:
A reference to the ITtsEngineSite interface, which provides access to system services such as even queuing and writing audio output.
An array of TextFragment instance produced from Speech Synthesis Markup Language (SSML) input. In addition to text to be rendered as speech, the parsing of the SSML stores information about the requested attributes of the speech in a T:System.Speech.Synthesis.TtsEngine.FragmentState instance associated with each incoming TextFragment object.
A speech synthesizer application can optionally make requests for a specified output format by implementing GetOutputFormat to be called by the platform when it tries to provide the correct audio output.
Available since 3.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.