共用方式為


SpeechSynthesizer Constructors

Definition

Overloads

SpeechSynthesizer(EmbeddedSpeechConfig)

Creates a new instance of SpeechSynthesizer using EmbeddedSpeechConfig. Added in 1.19.0

SpeechSynthesizer(HybridSpeechConfig)

Creates a new instance of SpeechSynthesizer using HybridSpeechConfig.

SpeechSynthesizer(SpeechConfig)

Creates a new instance of SpeechSynthesizer.

SpeechSynthesizer(EmbeddedSpeechConfig, AudioConfig)

Creates a new instance of SpeechSynthesizer using EmbeddedSpeechConfig. Added in 1.19.0

SpeechSynthesizer(HybridSpeechConfig, AudioConfig)

Creates a new instance of SpeechSynthesizer using HybridSpeechConfig.

SpeechSynthesizer(SpeechConfig, AudioConfig)

Creates a new instance of SpeechSynthesizer.

SpeechSynthesizer(SpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

Creates a new instance of SpeechSynthesizer. Added in 1.13.0

SpeechSynthesizer(EmbeddedSpeechConfig)

Creates a new instance of SpeechSynthesizer using EmbeddedSpeechConfig. Added in 1.19.0

public SpeechSynthesizer (Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig speechConfig);
new Microsoft.CognitiveServices.Speech.SpeechSynthesizer : Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig -> Microsoft.CognitiveServices.Speech.SpeechSynthesizer
Public Sub New (speechConfig As EmbeddedSpeechConfig)

Parameters

speechConfig
EmbeddedSpeechConfig

Embedded speech configuration

Applies to

SpeechSynthesizer(HybridSpeechConfig)

Creates a new instance of SpeechSynthesizer using HybridSpeechConfig.

public SpeechSynthesizer (Microsoft.CognitiveServices.Speech.HybridSpeechConfig speechConfig);
new Microsoft.CognitiveServices.Speech.SpeechSynthesizer : Microsoft.CognitiveServices.Speech.HybridSpeechConfig -> Microsoft.CognitiveServices.Speech.SpeechSynthesizer
Public Sub New (speechConfig As HybridSpeechConfig)

Parameters

speechConfig
HybridSpeechConfig

Hybrid speech configuration

Applies to

SpeechSynthesizer(SpeechConfig)

Creates a new instance of SpeechSynthesizer.

public SpeechSynthesizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig);
new Microsoft.CognitiveServices.Speech.SpeechSynthesizer : Microsoft.CognitiveServices.Speech.SpeechConfig -> Microsoft.CognitiveServices.Speech.SpeechSynthesizer
Public Sub New (speechConfig As SpeechConfig)

Parameters

speechConfig
SpeechConfig

Speech configuration

Applies to

SpeechSynthesizer(EmbeddedSpeechConfig, AudioConfig)

Creates a new instance of SpeechSynthesizer using EmbeddedSpeechConfig. Added in 1.19.0

public SpeechSynthesizer (Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechSynthesizer : Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechSynthesizer
Public Sub New (speechConfig As EmbeddedSpeechConfig, audioConfig As AudioConfig)

Parameters

speechConfig
EmbeddedSpeechConfig

Embedded speech configuration

audioConfig
AudioConfig

Audio configuration

Applies to

SpeechSynthesizer(HybridSpeechConfig, AudioConfig)

Creates a new instance of SpeechSynthesizer using HybridSpeechConfig.

public SpeechSynthesizer (Microsoft.CognitiveServices.Speech.HybridSpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechSynthesizer : Microsoft.CognitiveServices.Speech.HybridSpeechConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechSynthesizer
Public Sub New (speechConfig As HybridSpeechConfig, audioConfig As AudioConfig)

Parameters

speechConfig
HybridSpeechConfig

Hybrid speech configuration

audioConfig
AudioConfig

Audio configuration

Applies to

SpeechSynthesizer(SpeechConfig, AudioConfig)

Creates a new instance of SpeechSynthesizer.

public SpeechSynthesizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechSynthesizer : Microsoft.CognitiveServices.Speech.SpeechConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechSynthesizer
Public Sub New (speechConfig As SpeechConfig, audioConfig As AudioConfig)

Parameters

speechConfig
SpeechConfig

Speech configuration

audioConfig
AudioConfig

Audio configuration

Applies to

SpeechSynthesizer(SpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

Creates a new instance of SpeechSynthesizer. Added in 1.13.0

public SpeechSynthesizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig autoDetectSourceLanguageConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechSynthesizer : Microsoft.CognitiveServices.Speech.SpeechConfig * Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechSynthesizer
Public Sub New (speechConfig As SpeechConfig, autoDetectSourceLanguageConfig As AutoDetectSourceLanguageConfig, audioConfig As AudioConfig)

Parameters

speechConfig
SpeechConfig

Speech configuration

autoDetectSourceLanguageConfig
AutoDetectSourceLanguageConfig

The auto detect source language config

audioConfig
AudioConfig

Audio configuration

Applies to