SpeechSynthesizer Constructors

Definition

Overloads

SpeechSynthesizer(SpeechConfig speechConfig)

Creates a new instance of Speech Synthesizer. Uses the default speaker on the system for audio output.

SpeechSynthesizer(SpeechConfig speechConfig, AudioConfig audioConfig)

Creates a new instance of Speech Synthesizer. If audioConfig is null, there is no audio output.

SpeechSynthesizer(SpeechConfig speechConfig, AutoDetectSourceLanguageConfig autoDetectSourceLangConfig, AudioConfig audioConfig)

Creates a new instance of Speech Synthesizer.

SpeechSynthesizer(SpeechConfig speechConfig)

Creates a new instance of Speech Synthesizer. Uses the default speaker on the system for audio output.

public SpeechSynthesizer(SpeechConfig speechConfig)

Parameters

speechConfig
SpeechConfig

speech configuration.

SpeechSynthesizer(SpeechConfig speechConfig, AudioConfig audioConfig)

Creates a new instance of Speech Synthesizer. If audioConfig is null, there is no audio output.

public SpeechSynthesizer(SpeechConfig speechConfig, AudioConfig audioConfig)

Parameters

speechConfig
SpeechConfig

speech configuration.

audioConfig
AudioConfig

audio configuration.

SpeechSynthesizer(SpeechConfig speechConfig, AutoDetectSourceLanguageConfig autoDetectSourceLangConfig, AudioConfig audioConfig)

Creates a new instance of Speech Synthesizer.

public SpeechSynthesizer(SpeechConfig speechConfig, AutoDetectSourceLanguageConfig autoDetectSourceLangConfig, AudioConfig audioConfig)

Parameters

speechConfig
SpeechConfig

speech configuration.

autoDetectSourceLangConfig
AutoDetectSourceLanguageConfig

the configuration for auto detecting source language

audioConfig
AudioConfig

audio configuration.

Applies to