System.Speech.Synthesis.TtsEngine 命名空间

支持基于语音合成标记语言 (SSML) 创建用于呈现文本到语音 (TTS) 的自定义引擎。 Supports the creation of Speech Synthesis Markup Language (SSML) based custom engines for rendering text to speech (TTS).

Prosody

表示语音属性设置的集合,如 PitchRateVolumeRepresents a collection of settings for voice properties such as Pitch, Rate and Volume.

SayAs

包含有关内容类型(例如货币、日期或地址)或确定文本应如何发音的语言构造的信息。Contains information about the content type (such as currency, date, or address) or language construct that determine how text should be spoken.

SkipInfo

提供关于将跳过的文本流的信息。Provides information about text stream items to be skipped.

TextFragment

包含供语音合成引擎使用的文本和语音特性信息。Contains text and speech attribute information for consumption by a speech synthesizer engine.

TtsEngineSsml

所有的语音合成引擎文字可实现的抽象基类。Abstract base class to be implemented by all text to speech synthesis engines.

结构

ContourPoint

表示 TextFragment 的语音内容的间距的更改。Represents changes in pitch for the speech content of a TextFragment.

FragmentState

提供有关 TextFragment 的详细信息。Provides detailed information about a TextFragment.

ProsodyNumber

指定诗体论属性及其值。Specifies prosody attributes and their values.

SpeechEventInfo

用于指定事件的类型及其将生成的参数(如果有的话)作为文本呈现到语音一部分由自定义复合语音引擎。Used to specify the type of event, and its arguments (if any) to be generated as part of the rendering of text to speech by a custom synthetic speech engine.

接口

ITtsEngineSite

提供写入音频数据和事件的方法。Provides methods for writing audio data and events.

枚举

ContourPointChangeType

枚举 ContourPoint 更改的类型的值。Enumerates values for the types of ContourPoint change.

EmphasisBreak

枚举在讲单词之间的 EmphasisBreak 长度的值。Enumerates values for lengths of EmphasisBreak between spoken words.

EmphasisWord

枚举特定 EmphasisWordTextFragment 的值。Enumerates the values of EmphasisWord for a specific TextFragment.

EventParameterType

枚举传递到语音合成事件的数据指针的类型。Enumerates the types of data pointers passed to speech synthesis events.

ProsodyPitch

枚举特定 Pitch 对象的 Prosody 属性的值。Enumerates values for the Pitch property of a Prosody object.

ProsodyRange

枚举特定 Range 对象的 Prosody 属性的值。Enumerates values for the Range property of a Prosody object.

ProsodyRate

枚举特定 Rate 对象的 Prosody 属性的值。Enumerates values for the Rate property of a Prosody object.

ProsodyUnit

枚举 Unit 对象上的 Prosody 属性的值。Enumerates values for the Unit property on the Prosody object.

ProsodyVolume

枚举特定 Volume 对象的 Prosody 属性的值。Enumerates values for the Volume property of a Prosody object.

SpeakOutputFormat

枚举语音输出格式的类型。Enumerates the types of speech output formats.

TtsEngineAction

指定在呈现特定 TextFragment将采用的语音合成标记语言(SSML)事件。Specifies the Speech Synthesis Markup Language (SSML) action to be taken in rendering a given TextFragment.

TtsEventId

枚举语音合成事件的类型。Enumerates types of speech synthesis events.

注解

成员System.Speech.Synthesis.TtsEngine命名空间使可用 Windows 桌面语音技术对语音合成标记语言 (SSML) 基于标记语言和合成语音引擎构造的支持。The members of the System.Speech.Synthesis.TtsEngine namespace make available Windows Desktop Speech Technology support for Speech Synthesis Markup Language (SSML) based markup language and the construction of synthetic speech engines.

SSML 标记语言是行业标准提供丰富的、 基于 XML 的语言,可帮助合成语音引擎。The SSML markup language is the industry standard to provide a rich, XML-based language for assisting the synthetic speech engines. 它受认可的 Microsoft 和我们的竞争对手。It is endorsed by Microsoft and our competitors. SSML 的详细信息,请参阅语音合成标记语言规范For more information on SSML, see Speech Synthesis Markup Language Specification.

创建一个新的复合语音引擎使用的System.Speech.Synthesis.TtsEngine要求的实现和从抽象基类派生的对象注册TtsEngineSsmlCreating of a new of synthetic speech engine using System.Speech.Synthesis.TtsEngine requires the implementation and registration of an object derived from the abstract base class TtsEngineSsml.

System.Speech.Synthesis.TtsEngine 通过使用中的工具的 Windows 桌面语音技术基础结构访问基于复合语音引擎System.Speech.Synthesis命名空间,尤其是SpeechSynthesizer对象,并由应用程序永远不会直接使用。System.Speech.Synthesis.TtsEngine based synthetic speech engines are accessed through Windows Desktop Speech Technology infrastructure, using the tools in the System.Speech.Synthesis namespace, in particular SpeechSynthesizer object, and are never directly used by applications.

Windows 桌面语音技术基础结构可确保传递到语音合成引擎的所有参数进行都验证和线程同步。The Windows Desktop Speech Technology infrastructures ensures that all parameters passed to a synthetic speech engine are validated and thread synchronized.

A 的复合语音引擎使用实现System.Speech.Synthesis.TtsEngine技术可以:A of synthetic speech engine implemented using System.Speech.Synthesis.TtsEngine technology can:

另请参阅