System.Speech.Synthesis.TtsEngine Namespace

支援建立以 Speech Synthesis Markup Language (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命名空間進行的語音合成標記語言 (SSML) 為基礎的標記語言 」 以及 「 建構的合成語音引擎支援可用的 Windows 桌面語音技術。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.

使用實作的合成語音引擎的System.Speech.Synthesis.TtsEngine技術可以:A of synthetic speech engine implemented using System.Speech.Synthesis.TtsEngine technology can: