SpeechSynthesizer Class

Definition

Performs speech synthesis to speaker, file, or other audio output streams, and gets synthesized audio as result. Updated in version 1.7.0

public sealed class SpeechSynthesizer : IDisposable
type SpeechSynthesizer = class
    interface IDisposable
Public NotInheritable Class SpeechSynthesizer
Implements IDisposable
Inheritance
SpeechSynthesizer
Implements

Constructors

SpeechSynthesizer(SpeechConfig)

Creates a new instance of SpeechSynthesizer.

SpeechSynthesizer(SpeechConfig, AudioConfig)

Creates a new instance of SpeechSynthesizer.

SpeechSynthesizer(SpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

Creates a new instance of SpeechSynthesizer. Added in 1.13.0

Properties

AuthorizationToken

Gets/sets authorization token used to communicate with the service. Note: The caller needs to ensure that the authorization token is valid. Before the authorization token expires, the caller needs to refresh it by calling this setter with a new valid token. Otherwise, the synthesizer will encounter errors while speech synthesis. Added in version 1.7.0

Properties

The collection of properties and their values defined for this SpeechSynthesizer. Note: The property collection is only valid until the SpeechSynthesizer owning this Properties is disposed or finalized.

Methods

Dispose()

Dispose of associated resources.

Finalize()
SpeakSsmlAsync(String)

Execute the speech synthesis on SSML, asynchronously.

SpeakTextAsync(String)

Execute the speech synthesis on plain text, asynchronously.

StartSpeakingSsmlAsync(String)

Start the speech synthesis on SSML, asynchronously.

StartSpeakingTextAsync(String)

Start the speech synthesis on plain text, asynchronously.

Events

SynthesisCanceled

The event SynthesisCanceled signals that the speech synthesis was canceled.

SynthesisCompleted

The event SynthesisCompleted signals that the speech synthesis has completed.

SynthesisStarted

The event SynthesisStarted signals that the speech synthesis has started.

Synthesizing

The event Synthesizing signals that the speech synthesis is on going.

WordBoundary

The event WordBoundary signals that a word boundary was received. Added in version 1.7.0

Applies to