InstalledVoice.Enabled Property


Gets or sets whether a voice can be used to generate speech.

Namespace:   System.Speech.Synthesis
Assembly:  System.Speech (in System.Speech.dll)

public bool Enabled { get; set; }

Property Value

Type: System.Boolean

Returns a bool that represents the enabled state of the voice.

The value of the Enabled property is true by default. When an application calls GetInstalledVoices, the method verifies that each of the voices it finds in the registry meets certain minimum criteria. For any voice that fails verification, GetInstalledVoices sets its Enabled property to false. An application cannot select a voice whose Enabled property is false. Typically, applications will not set a voice’s Enabled property.

.NET Framework
Available since 3.0
Return to top